I’m making my first website using graphics from photoshop that I made from scratch. I’m now having issues with IE rendering the site differently than firefox.
For some reason, IE puts about a 5px space between my body image and my footer image, but firefox doesn’t.
Can somebody help me please?
I’m a noob so be gentle…
This is my html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Original Gangster Burgers Inc</title>
<meta http-equiv="Content-Type"
content="text/html; charset=iso08859-1" />
<link rel="stylesheet" type="text/css" href="styles.css" />
</head>
<body>
<div id="header">
<img src="images/header.jpg" height="260px" width="1000px" alt="Original Gangster Burgers Inc">
<div id="header-nav">
<ul>
<li class="homenav"><a id="homenav" href="http://www.originalgangsterburgers.com/index.html"> </a></li>
<li class="aboutusnav"><a id="aboutusnav" href="http://www.originalgangsterburgers.com/aboutus.html"><img src="images/aboutusnav.png"></a></li>
<li class="menunav"><a id="menunav" href="http://www.originalgangsterburgers.com/menu.html"><img src="images/menunav.png"></a></li>
<li class="photosnav"><a id="photosnav" href="http://www.originalgangsterburgers.com/photos.html"><img src="images/photosnav.png"></a></li>
<li class="directionsnav"><a id="directionsnav" href="http://www.originalgangsterburgers.com/directions.html"><img src="images/directionsnav.png"></a></li>
<li class="contactusnav"><a id="contactusnav" href=http://www.originalgangsterburgers.com/contactus.html""><img src="images/contactusnav.png"></a></li>
</ul>
</div>
</div>
<div id="body">
<img src="images/body.jpg" height="409px" width="1000px" alt="">
<div class="scroll">
<h1>
Under Construction!
</div>
</div>
<div id="footer">
<img src="images/footer.jpg" height="131px" width="1000px" alt="">
</div>
</body>
</html>
This is my stylesheet:
body {
margin: 0;
padding: 0;
background-color: #000000;
color: #000000;
font: 1em Helvetica, Arial, Verdana, sans-serif;
}
#header {
position: absolute;
top: 0px;
left: 30px;
}
#body {
position: absolute;
top: 260px;
left: 30px;
}
#footer {
position: absolute;
top: 669px;
left: 30px;
}
#header-nav {
position: absolute;
top: 222px;
left: 125px;
display: block;
width:1000px;
height:20px;
}
#header-nav ul {
margin: 0;
padding: 0;
list-style-type: none;
}
#header-nav li {
float: left;
}
#header-nav a#homenav {
background: transparent url(images/homenav.png) 4px 4px no-repeat;
display: block;
width: 40px;
padding-top: 25px;
margin-right: 51px;
height: 0;
color: #000;
text-decoration: none;
overflow: hidden;
}
#header-nav a#aboutusnav {
background: transparent url(images/aboutusnav.png) 4px 4px no-repeat;
display: block;
width: 65px;
padding-top: 25px;
margin-right: 48px;
height: 0;
color: #000;
text-decoration: none;
overflow: hidden;
}
#header-nav a#menunav {
background: transparent url(images/menunav.png) 4px 4px no-repeat;
display: block;
width: 39px;
padding-top: 25px;
margin-right: 55px;
height: 0;
color: #000;
text-decoration: none;
overflow:hidden;
}
#header-nav a#photosnav {
background: transparent url(images/photosnav.png) 4px 4px no-repeat;
display: block;
width: 53px;
padding-top: 25px;
margin-right: 50px;
height: 0;
color: #000;
text-decoration: none;
overflow: hidden;
}
#header-nav a#directionsnav {
background: transparent url(images/directionsnav.png) 4px 4px no-repeat;
display: block;
width: 77px;
padding-top: 25px;
margin-right: 35px;
height: 0;
color: #000;
text-decoration: none;
overflow: hidden;
}
#header-nav a#contactusnav {
background: transparent url(images/contactusnav.png) 4px 4px no-repeat;
display: block;
width: 80px;
padding-top: 25px;
margin-right: 1px;
height: 0;
color: #000;
text-decoration: none;
overflow: hidden;
}
a:link {
color: transparent;
background-color: transparent;
text-decoration: none;
}
a:visited {
color: transparent;
background-color: transparent;
text-decoration: none;
}
#header-nav a#homenav:hover {
background: transparent url(images/homehover.png) 0 0 no-repeat;
}
#header-nav a#aboutusnav:hover {
background: transparent url(images/aboutushover.png) 0 0 no-repeat;
}
#header-nav a#menunav:hover {
background: transparent url(images/menuhover.png) 0 0 no-repeat;
}
#header-nav a#photosnav:hover {
background: transparent url(images/photoshover.png) 0 0 no-repeat;
}
#header-nav a#directionsnav:hover {
background: transparent url(images/directionshover.png) 0 0 no-repeat;
}
#header-nav a#contactusnav:hover {
background: transparent url(images/contactushover.png) 0 0 no-repeat;
}
* html #menu a:hover {height:128px; he\\ight:0;}
a:active {
color: transparent;
background-color: transparent;
text-decoration: none;
}
.scroll {
position: absolute;
top: 0px;
left: 100px;
height: 410px;
width: 790px;
overflow: auto;
border: 0px
background-color: transparent;
padding: 0px;
}
h1 {
position: relative;
top: 0px;
left: 0px;
display: block;
color: #000000;
font: 2em Helvetica, Arial, Verdana, sans-serif;
}