My HTML5 page has an issue where the image is taking over the background color of the entire page. I want to adjust it so that the image appears in the background, while the background color shows up behind the content on top. Check out my code below and let me know how to resolve this. Thank you for your help!
Here is the index file:
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="stylesheet" href="javajam.css">
<title>JavaJam Coffee House</title>
<meta charset="utf-8">
<link rel="icon" href="favicon.ico" type="image/x-icon">
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
</head>
<body>
<div id="wrapper">
<h1><img src="javalogo.gif" alt="JavaJam Logo" width="619" height="117"></h1>
<div id="nav">
<a href="index.html">Home</a>
<a href="menu.html">Menu</a>
<a href="music.html">Music</a>
<a href="jobs.html">Jobs</a>
</div>
<div id="content">
<img src="windingroad.jpg" alt="Winding Road" width="333" height="156" align="right">
<ul>
<li>Specialty Coffee and Tea</li>
<li>Bagels, Muffins, and Organic Snacks</li>
<li>Music and Poetry Readings</li>
<li>Open Mic Night</li>
</ul>
<div>
12312 Main Street<br>
Mountain Home, CA 93923<br>
1-888-555-5555
</div>
<br>
</div>
<div id="footer">
Copyright © 2013 JavaJam Coffee House<br>
<a href="mailto:<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="a5dfcdc4d2cecccbd69c91939de5c2c8c4ccc98bc6cac8">[email protected]</a>"><a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="6f15070e180406011c565b59572f08020e0603410c0002">[email protected]</a></a>
</div>
</div>
</body>
</html>
This is the CSS used:
body { background-color: #FFFFCC;
color: #330000;
font-family: Verdana, Arial, sans-serif;
background-image: url(background.gif); }
h1 { background-color: #CCAA66;
color: #000000;
text-align: center; }
h2 { background-color: #CCAA66;
font-size: 1.2em;
padding-left: 10px;
padding-bottom: 5px; }
img { border: none; }
#nav { text-align: center; }
#footer { background-color: #CCAA66;
color: #000000;
font-size: .60em;
font-style: italic;
text-align: center;
padding: 10px; }
#wrapper { background-color: ffffcc;
width: 80%;
margin-left: auto;
margin-right: auto;
min-width: 700px;
-webkit-box-shadow: 5px 5px 5px #1e1e1e;
-moz-box-shadow: 5px 5px 5px #1e1e1e;
box-shadow: 5px 5px 5px #1e1e1e; }
#content { padding: 25px; }
.details { padding-left: 20%;
padding-right: 20%; }