|
You need to do 2 things to center a div and have it work cross-browser.
For non-IE browsers-
on your #wrapper (the container you want centered that holds everything else), make sure your #wrapper has a width defined and add
margin: 0 auto;
text-align: left; <-- puts the text back where it belongs
For IE add:
body{
text-align: center;
}
Adding "align: center" is not a good solution and should be avoided.
__________________
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
Last edited by LadynRed; 05-20-2007 at 11:31 AM..
|