PHP Developers Network
http://forums.devnetwork.net/

Image Transparency is setting Absolutel Div transparent too
http://forums.devnetwork.net/viewtopic.php?f=68&t=141902
Page 1 of 1

Author:  simonmlewis [ Fri Oct 16, 2015 9:59 am ]
Post subject:  Image Transparency is setting Absolutel Div transparent too

I have floating DIVs, with product images inside.
Within the DIV, is an absolute DIV, for things like price discounts, "back in stock" and so on.

If the item is out of stock, I want to set the image to be transparent. Easy.
But when I do this, the absolute DIV is going transparent as well.

I'm using opacity: 0.6;.

Author:  simonmlewis [ Fri Oct 16, 2015 10:34 am ]
Post subject:  Re: Image Transparency is setting Absolutel Div transparent

Ahh I figured it out - the DIV was going over the top of the image, so the absolute DIVs were ending up behind the image.

Changing the z-indexes... and it's sorted.

Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/