I am trying to use a transparent png image on a site.
its work in firefox but in IE white background is still showing.
please suggest

Recommended Answers

All 4 Replies

Use CSS property to set the value..

we have tried that also but its not worked.

now its looking diffrent in diffrent screens why its happening?

If its IE6 or 7, you will need a png fix or go for PNG-8 instead.

Put this in your head section of HTML document.

<!--[if lte IE 6]>
img#yourimage {
background: none; filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='your_image.png',sizingMethod='crop');
}
<![endif]-->

But, it was not a complete solution. It may cause some hyperlinks dead when you use this image as background under any layers where hyperlinks is on it.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.