|
The reason the div wouldn't center in FF (or IE7), is because you used text-align: center - which works fine for IE 6, but in FF and IE 7 (and other standards-compliant browsers) it will NOT, all it does is center align what's INSIDE the div.
To center a div for any browser but IE 6, you need to add margin: 0 auto; to the rules for the div you wish to center.
So in order to center a div for all browsers, you need both the text-align:center and the margin: 0 auto;
The zero indicates top and bottom margin so you can change that as needed. The "auto" indicates right and left margins and you have to have a defined width on the box/element you want centered.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!
Please login or register to view this content. Registration is FREE
Please login or register to view this content. Registration is FREE
|