EveryMatrix / workshops

6 stars 2 forks source link

How to center in CSS #34

Open iliutastoica opened 8 years ago

iliutastoica commented 8 years ago

Use this tool to help you http://howtocenterincss.com/

fk1blow commented 8 years ago

i would suggest to generalize a bit and go towards a "positioning" or "layouts" in css - table-based, floats, grids, flexbox, you name it, in order to have a broader view of the subject.

Other than that, 👍

iliutastoica commented 8 years ago

parent { text-align:center } -children { display:inline/inline-block, float: none } /* float: none makes the content to stick to center */