html/css. What am I doing wrong? background image won't show.?

Noah K

New member
Everytime I add the body {...} to my style.css the background image either doesn't show up or just shifts the spacing of the header and leftnav. I don't really want to move forward with the rest until I figure this problem out. Thanks.


Here is my index.html:
<html>
<head>
<link href="style.css" rel="stylesheet" type ="text/css">
</head>
<body>
<div id="container">
<div id="header"></div>
<div id="leftnav"></div>
<div id="textion"></div>
<div id="footer"></div>

</div>

</body>
</html>

Here is my style.css:



body {
width: 329px;
height: 239px;
margin: 0 auto;
background-image: #fff url(pictures/websitebg.jpg) repeat top left scroll;
}





#container {750 px}
#header {width: 750px;
height: 100px;
background-color: f8aa3c;
border-bottom: 2px solid #000000;}
#leftnav{ float: left;
width: 140px;
height: 400 px;
background-color: f8aa3c;
border-right: 1px dashed #694717;}
#footer
the .jpg I'm using is in the same folder as the other files, but in a folder titled pictures, and the file name is correct.
 
Back
Top