How to center a div?


Here is Css:


        

Here is HTML:



        

Here's the result:

See the Pen Center A Div by Online Tool (@onlintool24) on CodePen.