Jump to content

two objects at the same place


soeren

Recommended Posts

hello

 

I want to place two different objects in two layers at the same place. In the foreground there has to be a table an in the background there has to be an image. the foreground has to be transparent.

 

thank you for posting!

Link to comment
Share on other sites

not sure i under stand what you are asking, you want to display one layer directyl over another layer?

 

if so try changing the z-index of the layers and position them over top of one another

 

exp:

 

//style
#layer 1{position:relative;z-index:1;width:100px;height:100px;}
#layer 2{position:relative;z-index:2;width:100px;height:100px;top:-100px;}

//html
<div id="layer 1"></div>
<div id="layer 2"></div>

 

try that, if this is not what you are trying to do then sorry;)

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.