Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

png background image issue

Status
Not open for further replies.

IronOrchid

Programmer
Oct 5, 2002
8
US
I'm trying to put together a site design with partially transparent background images for my boxes. I've set a gif as the background for the page, but for some reason I can't get the backgrounds of any div to be partially transparent (using png's for this).

Any ideas?
 
What browser are you previewing in? Only a handfull support alpha transparency for 24bit png's natively. Here's a partial list:

DON'T support alpha (partial) transparency:
Internet Explorer 6 (and 5 and 4)
Netscape 4
Opera 5

DO support alpha transparency:
Mozilla 1+
Netscape 6, 7

A solution to your dilemma might be to make every other pixel of your graphic transparent, thus allowing some of the background to show through, and requireing nothing more than full transparency capabilities.

Hope this helps. Kim

 
Thanks Kim. Unfortunately I'm getting the feeling that none of the major browsers fully support alpha transparency. I've been testing in Opera 6 and Mozilla 1.1. Placing a semi-transparent png-8 in an img tag works just fine, but setting it as the background image just doesn't work at all.

I could recreate the effect using CSS2 positioning techniques, but unfortunately the only browser that would render it properly would be Mozilla.

I can't wait for a standards compliant browser to hit the market.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top