iDenning
13-08-2009, 02:59 PM
Hey
I've coded a layout and in every browser apart from internet explorer is centered, in IE it is on the left.
Does anyone know how to solve this?
Heres my CSS:
body {
font: 10px verdana;
color: #666666;
margin:0px auto 0 auto;
}
a { font: 10px verdana; }
a:link { text-decoration: none; color: #666666; }
a:visited { text-decoration: none; color: #666666; }
a:hover { text-decoration: none; color: #666666; }
a:active { text-decoration: none; color: #666666; }
body {
background-image: url(images/bg.png);
}
/* LAYOUT */
#wrapper {
width: 900px;
margin-top: 20px;
margin-left: auto;
margin-right: auto;
}
#notice {
background: url('images/notice.png') no-repeat;
width: 900px;
height: 79px;
padding-top: 0px;
padding-left: 50px;
text-align: center;
}
#banner {
background: url('images/banner.png') no-repeat;
width: 900px;
height: 136px;
}
#nav {
background: url('images/nav.png') no-repeat;
width: 900px;
height: 40px;
padding-top: 0px;
padding-left: 7px;
text-align: center;
}
#content_bg {
background: url('images/contentbg.png') repeat-y;
width: 900px;
}
#left {
width: 302px;
float: left;
margin-left: 0px;
}
#right {
width: 579px;
float: left;
margin-left: 10px;
}
#newsimg {
background: url('images/newsimg.png') repeat-y;
width: 302px;
height: 188px;
}
#bluebox {
background: url('images/bluebox.png') no-repeat;
width: 302px;
height: 42px;
padding-top: 7px;
padding-left: 9px;
}
#greenbox {
background: url('images/greenbox.png') no-repeat;
width: 302px;
height: 44px;
padding-top: 7px;
padding-left: 9px;
}
#footer {
background: url('images/footer.png') no-repeat;
width: 900px;
height: 7px;
clear: both;
}
#copyright {
width: 900px;
margin-left: auto;
margin-right: auto;
margin-bottom: 25px;
color: #FFF;
}
+rep for all helpers.
Thanks in advanced :)
I've coded a layout and in every browser apart from internet explorer is centered, in IE it is on the left.
Does anyone know how to solve this?
Heres my CSS:
body {
font: 10px verdana;
color: #666666;
margin:0px auto 0 auto;
}
a { font: 10px verdana; }
a:link { text-decoration: none; color: #666666; }
a:visited { text-decoration: none; color: #666666; }
a:hover { text-decoration: none; color: #666666; }
a:active { text-decoration: none; color: #666666; }
body {
background-image: url(images/bg.png);
}
/* LAYOUT */
#wrapper {
width: 900px;
margin-top: 20px;
margin-left: auto;
margin-right: auto;
}
#notice {
background: url('images/notice.png') no-repeat;
width: 900px;
height: 79px;
padding-top: 0px;
padding-left: 50px;
text-align: center;
}
#banner {
background: url('images/banner.png') no-repeat;
width: 900px;
height: 136px;
}
#nav {
background: url('images/nav.png') no-repeat;
width: 900px;
height: 40px;
padding-top: 0px;
padding-left: 7px;
text-align: center;
}
#content_bg {
background: url('images/contentbg.png') repeat-y;
width: 900px;
}
#left {
width: 302px;
float: left;
margin-left: 0px;
}
#right {
width: 579px;
float: left;
margin-left: 10px;
}
#newsimg {
background: url('images/newsimg.png') repeat-y;
width: 302px;
height: 188px;
}
#bluebox {
background: url('images/bluebox.png') no-repeat;
width: 302px;
height: 42px;
padding-top: 7px;
padding-left: 9px;
}
#greenbox {
background: url('images/greenbox.png') no-repeat;
width: 302px;
height: 44px;
padding-top: 7px;
padding-left: 9px;
}
#footer {
background: url('images/footer.png') no-repeat;
width: 900px;
height: 7px;
clear: both;
}
#copyright {
width: 900px;
margin-left: auto;
margin-right: auto;
margin-bottom: 25px;
color: #FFF;
}
+rep for all helpers.
Thanks in advanced :)