robcrozier Posted December 10, 2006 Share Posted December 10, 2006 Hi,ok, Ive got two css layers set with z-index's'. I want to place a transparent image on the top layer so that some of the background image on the bottom layer can be seen through it. However, despite saving my images as transparent Gifs and them working when in the same layer, they loose their transparency when used on a higher layer. Does anyone know what i can do to make my top layer images appear transparent?Cheers Quote Link to comment https://forums.phpfreaks.com/topic/30131-image-transparency-between-layers-help/ Share on other sites More sharing options...
Zane Posted December 10, 2006 Share Posted December 10, 2006 Here are the CSS properties for opacityGeneral Property[code]opacity:.25;[/code]Internet Explorer[code]filter:alpha(opacity=25);[/code]Firefox[code]-moz-opacity:.25;[/code]your best best is to set it like this[code]filter:alpha(opacity=25);-moz-opacity:.25;opacity:.25;[/code] Quote Link to comment https://forums.phpfreaks.com/topic/30131-image-transparency-between-layers-help/#findComment-138506 Share on other sites More sharing options...
robcrozier Posted December 10, 2006 Author Share Posted December 10, 2006 hi, thanks for your response. the problem with your solution is that it makes the entire layer transparent, not just the image. I just want the image to retain its transparency if possible.cheers Quote Link to comment https://forums.phpfreaks.com/topic/30131-image-transparency-between-layers-help/#findComment-138510 Share on other sites More sharing options...
Zane Posted December 10, 2006 Share Posted December 10, 2006 oh...hmm...did you try absolute positioning...them on top of another Quote Link to comment https://forums.phpfreaks.com/topic/30131-image-transparency-between-layers-help/#findComment-138511 Share on other sites More sharing options...
robcrozier Posted December 10, 2006 Author Share Posted December 10, 2006 yup tried that too - no joy. The image just appears washed out, as if its on a white background - probe the layer background, even if i set the layer to transparent is doesn't work!?????cheers Quote Link to comment https://forums.phpfreaks.com/topic/30131-image-transparency-between-layers-help/#findComment-138513 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.