css - alignment of background in internet explorer -
i working on website http://bookmyshirt.co.cc/help/index.html background not align in internet explorer working fine in firefox. please me out.
try adding doctype.
<!doctype html public "-//w3c//dtd xhtml 1.0 transitional//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd">
i had @ styles. if replace styles on #maincontainer:
left: -480px; margin-left: 50%; position: relative
with
margin:0 auto; width: 960px;
everything should line up. if doesn't, use ie's developer toolbar trace styles. firebug.
edit: please note, must set width on element, otherwise margin:0 auto won't have effect.
Comments
Post a Comment