Category Archives: CSS

Centering With CSS

This was one of the things that bothered me so much when I was first learning CSS. How in the world do you properly center things without using the outdated <center> tag? Well the answer is simple. And all it requires is some creative margin work and some easy to remember text-align’ing.

To center an entire layout with CSS you would add the following to your style sheet: