|
| |||||||||
| Tags: div tag, image, image transparency, photo, picture, transparent |
![]() |
| | Thread Tools | Search this Thread |
|
#1
| |||
| |||
| 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; Code: filter: alpha (opacity = 100); opacity: 1.00; -moz-opacity: 1.00; |
|
#2
| |||
| |||
| 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. |
|
#3
| |||
| |||
| 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! |
|
#4
| |||
| |||
| 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. |
![]() |
|
| Thread Tools | Search this Thread |
| |
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 |