Hey everyone,
I have a quick question that I thought might be more efficient to just post then to Google…
I’m reading a CSS book, and in an example the author shows how to bypass the traditional “container” div to center the layout. His solution: text align: center the html selector, and set body selector margin to: 0 auto, and set a 770 width. I get the body rule, im just uncertain why i have to text align center the html selector?? It seems redundant to me, but it could be my newbie-ness. To me, the browser results look the same with or without this rule applied. Any thoughts? Thanks!
— example —
html {
text-align: center;
}
body {
width: 770px;
margin: 0 auto;
text-align: left;
}