Jump to content

[SOLVED] 2 background images


peranha

Recommended Posts

I am trying to get 2 background images to work on my page, but cannot, the page loads with just one image, but give me white background with 2 images.

 

a:link, a:visited, a:hover {
color: RED;
}

head {
background: #C0C0C0;
height: 50px;
}

body { 
background: url(../pics/header.JPG), url(../pics/body.JPG);
}

 

That is what I have, and it doesnt work.  Tried with quotes around the path, and that didnt work either.

Link to comment
Share on other sites

What I want is to have the header of the page to show the head.JPG pic, and the body to show body.JPG.  I tried to set the head.JPG in the head section, but it just showed the body.JPG pic.  So I looked up on W3.org, and this is the way that they said to do it, so I tried it, and it didnt work this way either.  If you could give me an example that would be great.  Thanks in advance.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.