I’m building a pretty basic site with html and css for a class and I ran into a little problem. It looks okay on Safari but on Firefox my background doesn’t show up. Can someone look at my code and tell me what I’ve done wrong?
Here is the home page html:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Thad's Review of the Functionality of Bass Fishing Websites</title>
<meta name="description" content="Thad's review on how different bass fishing sites function./>
<meta name="keywords" content="bass, fishing, site, reviews, web, design"/>
<link href="style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="wrapper">
<div id="header">
<a href="index.html"><img src="logo.png" alt= "Thad's Reviews of Bass Fishing Sites" /> </a>
</div>
<div id="nav">
<h2>Navigation</h2>
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="review1.html">BassResource</a></li>
<li><a href="review2.html">Tackle Tour</a></li>
<li><a href="review3.html">BassMaster</a></li>
</ul>
</div>
<div id="main">
<p>This review site was designed to discuss the functionality of bass fishing websites.
Outside of school I spend a lot of time bass fishing. I am the president of
the Fishing Club at Radford University. I have also spent a lot of time learning about web
design so the two go hand in hand for me.
</p>
<p>
sdfsdf
</p>
<p>
sdfsdf
</p>
<p>
sdfsdf
</p>
</div>
<div id="footer">
<div align="center">
contact
</div>
</div>
</div>
</body>
</html>
Here is my css file:
body {
background-image:url('bg_box.png');
background-repeat:repeat;
font-size:12px;
font-family:Verdana, Arial, Helvetica, sans-serif;
}
div#wrapper {
width: 800px;
background-color:#FFFFFF;
margin-top: 50px;
margin-bottom: 50px;
margin-left: auto;
margin-right: auto;
padding: 0px;
border: thin solid #000000;
}
div#header {
padding: 0px;
margin: 0px;
text-align: center;
background-color:#000;
color:#900000;
border: none;
}
div#nav {
width: 25%;
padding: 10px;
margin-top: 1px;
float: left;
border-right:dotted;
}
div#main {
margin-left: 30%;
margin-top: 1px;
padding: 10px;
}
div#footer {
padding: 15px;
margin: 0px;
border-top: thin solid #000000;
}
a:link {color:#B00000; text-decoration:none;}
a:visited {color:#900000; text-decoration:none;}
a:hover {color:#D00000; text-decoration:underline;}
a:active {color:#900000; text-decoration:none;}
img { border: none; }