Sunday, May 3, 2009

Centering a div

This approach will center a <div> in a scenario where you want to have the body of your page centered on the screen, but leave the text left aligned.
text-align: center;
align: center;

text-align: left;
margin: 0 auto;
align:center / margin: 0 auto are for IE/FF.

No comments: