I'm trying to center my wrapper div, it works in Firefox fine but IE the whole things hangs on the right site. You can see it here- www.blog-hints.com THis is what my CSS tag looks like now div.wrapper{ background-color: #FFFFFF; width:790; position: static; margin: 0 auto; } Code (markup):
The root cause of your centering problem is that you didn't use a full and complete DTD, causing IE to be in quirks mode. In quirks, IE6 does not support margin: auto. Fix the DTD, and you can drop the hack. You can use the hackish work-around for IE5, if you care about that two generations obsolete browser. cheers, gary