positronic
07-09-2007, 11:55 AM
I just realized the site I've been working on for ages and thought was done with doesn't render correctly in IE. I started another site with the same layout type and it's doing the same thing.
The site:
http://people.virginia.edu/~nnw4n/rpgmaker/
The CSS
* {
padding:0px;
margin:0px;
}
html {
background: transparent url(bg.jpg) repeat-x;
}
body {
margin: 0px;
padding: 0px;
background: url(header.jpg) no-repeat center top;
font-family: arial;
}
#container {
position: relative;
margin: 0px auto;
padding: 0px;
width: 770px;
border: none;
text-align: left;
}
#main {
position:relative;
background-color: #FFFFFF;
top:145px;
left:auto;
right:auto;
width: 730px;
padding:20px;
}
ul {
margin-left:35px;
padding:5px;
}
ol {
margin-left:35px;
padding:5px;
}
dl {
margin-left:35px;
padding:5px;
}
dd {
margin-left:55px;
}
h1 {
padding:5px;
}
h2 {
padding:5px;
}
h3 {
padding:5px;
}
p {
padding:5px;
}
It looks correct in Firefox, but not in IE. Here are my problems:
IE seems to completely disregard the background image I've set for html in the stylesheet.
While Firefox reads the container margin with auto and centers everything nicely inside the container, IE seems to shove it all over to the left no matter what I try.
Is this covered at Position is Everything? I looked through some of the sections but I'm confused on what the problem actually is. Any help would be greatly appreciated!
The site:
http://people.virginia.edu/~nnw4n/rpgmaker/
The CSS
* {
padding:0px;
margin:0px;
}
html {
background: transparent url(bg.jpg) repeat-x;
}
body {
margin: 0px;
padding: 0px;
background: url(header.jpg) no-repeat center top;
font-family: arial;
}
#container {
position: relative;
margin: 0px auto;
padding: 0px;
width: 770px;
border: none;
text-align: left;
}
#main {
position:relative;
background-color: #FFFFFF;
top:145px;
left:auto;
right:auto;
width: 730px;
padding:20px;
}
ul {
margin-left:35px;
padding:5px;
}
ol {
margin-left:35px;
padding:5px;
}
dl {
margin-left:35px;
padding:5px;
}
dd {
margin-left:55px;
}
h1 {
padding:5px;
}
h2 {
padding:5px;
}
h3 {
padding:5px;
}
p {
padding:5px;
}
It looks correct in Firefox, but not in IE. Here are my problems:
IE seems to completely disregard the background image I've set for html in the stylesheet.
While Firefox reads the container margin with auto and centers everything nicely inside the container, IE seems to shove it all over to the left no matter what I try.
Is this covered at Position is Everything? I looked through some of the sections but I'm confused on what the problem actually is. Any help would be greatly appreciated!