Jump to content

pic ovr pic


jwk811

Recommended Posts

I have a list of products and what i want to do is when they sell put a big SOLD stamp picture over the whole listing. But when i do this the white from the pic shows so theres no trace of what the product was behind it (and yes the customers will still need to see the sold items) and this seems like it would work perfectly if it showed through.. now i know its possible but how can i make it so the white of the pic doesnt show and works as a transparense?
Link to comment
https://forums.phpfreaks.com/topic/32639-pic-ovr-pic/
Share on other sites

try placing your product image as a background image of a span tag. give the span width and height (and display: block) then when the product has sold out you simply need to put <img src="soldout.gif" /> in side the span. If it has transparancy in all teh right places then it will appear on top of the product image.
Link to comment
https://forums.phpfreaks.com/topic/32639-pic-ovr-pic/#findComment-152153
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.