I have recently redesigned my website using a new template. The site works just fine in IE7, but the main page content is not being centered in FF 3.
You see in the image below I have firebug open. That specific DIV (class=the_body) has an absolute width set and the text-align is set to center. Why then is Firefox not centering the div?
That specific DIV (class=the_body) has an absolute width set and the text-align is set to center. Why then is Firefox not centering the div?
It's not centered because that is not the right way to center a div. The text-align:center centers the text INSIDE the div - not the div itself. If you want the div centered - add margin: 0 auto; (adjust top and bottom as needed).
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!