I am working on a website, and am currently on the homepage. I had a previously-written CSS header, and wanted to substitute an image for the background of the header <div>
instead of a solid color, as in the previous design. I have a header image, in the img/header.jpg
directory. I am loading the background image using the background-image
property like so:
background-image: url(img/header.jpg)
The problem is, it does not load the image, the background is just silver (which is what the background of the <body>
is set to).
Can anybody tell me what I am doing wrong here? (the browser I am testing it in is IE8, if that might have anything to do with it :)