Run
Online Code Editor
Center align button
Click me
In this example we are using the
display: grid;
and
margin: auto;
properties