Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read SiteMap

Tags: , , , , ,

Sponsored Links



How to get image transparency

Software Development


Reply
 
Thread Tools Search this Thread
  #1  
Old 26-11-2009
Member
 
Join Date: Jun 2009
Posts: 3,971
How to get image transparency

I have a page body of <div> transparent. To be sure it works on all browsers, I got the transparency with
Code:
filter: alpha (opacity = 80); 
opacity: 0.80; 
-moz-opacity: 0.80;
Good so far it works. In the inside of these boxes I have a picture but it is also transparent. This is normal because it inherits properties. But how can that image is not transparent? I tried by creating a div just for the image
Code:
filter: alpha (opacity = 100); 
opacity: 1.00; 
-moz-opacity: 1.00;
But it is not working, new properties do not replace the previous. The only solution I found was out of the picture are container. Someone would have any idea? How can I make the images in the boxes on my website transparent?
Reply With Quote
  #2  
Old 26-11-2009
Member
 
Join Date: Nov 2008
Posts: 1,193
Re: How to get image transparency

What you want is to see the background in the blue blocks but not in the pictures, right? So this should work with the "Display" property. The display property specifies the type of box an element should generate. The display property is supported in all major browsers.
Reply With Quote
  #3  
Old 26-11-2009
Member
 
Join Date: Jun 2009
Posts: 3,971
Re: How to get image transparency

I did several tests not only with display but also with z-index but nothing changes. What I actually want is that the blue box (which contains the image) is transparent as well as the opaque image. To get a better idea, you can see simply your desktop wallpaper images that explains everything!
Reply With Quote
  #4  
Old 26-11-2009
Member
 
Join Date: Nov 2008
Posts: 1,055
Re: How to get image transparency

Are you sure that you declare your properties in opacity on div 2 levels? If you make a div transparent, everything inside in it is transparent. For that: either you put a transparent background png, or you make 2 div and you fill it with z-index, and one that you want to make transparent.
Reply With Quote
Reply

  TechArena Community > Software > Software Development


Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "How to get image transparency"
Thread Thread Starter Forum Replies Last Post
Transparency is not good in cinema 4d TBina Windows Software 2 27-08-2011 11:50 AM
True transparency problems, please help Mrigankasekhar Customize Desktop 5 24-04-2010 06:57 AM
Transparency Antialiasing Aldous Hardware Peripherals 5 16-04-2010 12:16 AM
PNG transparency problem in Vista Kieran Customize Desktop 2 28-02-2009 12:52 PM
PNG transparency in internet explorer Rixwel Technology & Internet 6 19-02-2009 11:45 AM


All times are GMT +5.5. The time now is 04:02 AM.