ProfK
ProfK

Reputation: 51064

Background not showing

I have a background image set on a web page with the following CSS:

    body, html
    {
        background-image: url(Content/Images/bg-lounge-2-l.jpg);
        background-repeat: repeat;
        background-attachment: fixed; /*background-position: 0 -390px;*/
    }

This background was visible until late last night, in Firefox and IE, but at some point something changed and it no longer shows in the browsers. It does show in the VS 2008 designer, and the image is in the correct location. If I paste the image url into my address bar, I can view the image. What could be wrong?

Upvotes: 0

Views: 76

Answers (1)

Marius
Marius

Reputation: 58931

Remember that the url to the image is relative to the path to the CSS file, and not the HTML file that loads the CSS file. Also check that you have the correct spelling and capitalization.

Upvotes: 1

Related Questions