Jump to content

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

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.