Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Style Background image ontop of image

Status
Not open for further replies.

M8KWR

Programmer
Aug 18, 2004
864
GB
I have a table cell which I am applying a style to. This style has a background image.

Then I require another image going into that same tablecell.

But what I am looking to do is make the tablecell style's background image be ontop of the image that I put into the cell.

The reason for this I am using vb.net to make the table rows/cells. The background image for the style is the only constant, as the other one would change.

The only way to try and describe what I am doing is lets say I want to put a sale image in the top left corner of an image without have to alter the original image for that product.

The Sale image would be against the style, and the product image would be put there after.

Many thanks for any help in advance.
 
The reason it is called a "background image" is because it is in the background - i.e. under all the content.

While you might be able to do something with a negative z-index, I don't think this will work cross-browser (if at all).

Why not use normal image nodes instead, and change the z-indexes?

Dan



Coedit Limited - Delivering standards compliant, accessible web solutions

Dan's Page [blue]@[/blue] Code Couch:
Code Couch Snippets & Info:
The Out Atheism Campaign
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top