Jump to content

Two backgrounds


iJoseph

Recommended Posts

Hey, I'm not that good with CSS, and even dreamweaver can't help me.

 

I'm trying to get two backgrounds to show at the same time, but for one to overlay the other.

 

I have one, for the whole background, and another that goes in the middle on the y axis

 

I have tryed:

 

<style type="text/css">
background-image: www.mysite.com/images/bg.gif;

background-image: www.mysite.com/images/bg2.gif;
</style>

And...

<style type="text/css">
background-image: www.mysite.com/images/bg.gif;
</style>
<body background="www.mysite.com/images/bg2.gif">

 

But it's not working. Can anybody help me?

I'm 13 by the way :)

Link to comment
Share on other sites

<div> tag is most efficient to display the two backgrounds which can overlay each other but if there is any browser compatibility issue than u can use nested tables by setting the width and height to display the appropriate effect of overlay layers.....

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.