Advertisement Jump to content
Sign in to follow this  

[web] Layering two images, within a table

This topic is 4917 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello, Just wondering but I'm working on something and I wish to conceal a jpg image of the same size, with a semi transparent gif which will go over it, both of these images will be in the same TD I'm just wondering if this is possible? As I have been looking on the net but unfortunatly been unable to find anything to help me. At the moment i have one img looking at img.behind and one image looking at img.front, these are within a css page the behind has z-index: 1; the front has a z-index: 2; but unfortunatly this hasnt worked, as it just lays the image to the other images side, i'm thinking its something to do with positioning but I'm unsure. Thanks in advance for any help.

Share this post

Link to post
Share on other sites
Perhaps use the css?

make something like

.layerpic {
background-image: url(images/image.jpg);
background-repeat: no-repeat;

then in the table

<td class = layerpic>


Does that help at all?

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using, you agree to our community Guidelines, Terms of Use, and Privacy Policy. is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!