ok.
i want a centerd div which is my wrapper with everything in fixed width
Ok i found a fix in which makes it centerd in safari and firefox and probably all non-IE browsers which is to use this:
Code:
#wrapper {
width: 790px;
background: #fff;
position: relative;
left: 50%;
margin-left: -395px; /* half the width of the div */
}
However... in IE7 (not sure about six havnt tested)
it ends up somewhere over there ----------------------------->
BUT if i put this:
Code:
#wrapper {
width: 790px;
background: #fff;
position: relative;
margin-left: 50% -395px; /* half the width of the div */
}
it works fine in IE
but in all others it ends up over there ------------------------------->
Yet IE will centre it with just a text-align: center in my body (which i have)
So how do i make a code which works well for both?
__________________
Discounted Web Hosting With XDnet! >> Get 25% of hosting~ Promo: Webmaster-talk <<
|