Transparency

J

jafar

Hi.
I've made some buttons in The Gimp using transparency and saved as .png's.
The problem is that in every browser except IE the transparency works
fine. In IE the buttons have a white background instead. Is there any way
around this?
Here's a link to a page that doesn't use bgsound for those that hate it ;)
http://moonlife-records.com/samples.html
Take a look and help me if you can.
Cheers!
 
A

Animesh Kumar

jafar said:
Hi.
I've made some buttons in The Gimp using transparency and saved as .png's.
The problem is that in every browser except IE the transparency works
fine. In IE the buttons have a white background instead. Is there any way
around this?
Here's a link to a page that doesn't use bgsound for those that hate it ;)
http://moonlife-records.com/samples.html
Take a look and help me if you can.
Cheers!

Use GIF. GIF works fine in all browsers. I learnt recently that
transparent PNGs are not handled nicely by IE (and indeed I observed
this as well).

Best
A
 
M

Mark Parnell

Previously in alt.html said:
I've made some buttons in The Gimp using transparency and saved as .png's.
The problem is that in every browser except IE the transparency works
fine. In IE the buttons have a white background instead. Is there any way
around this?

IE doesn't support alpha transparency in PNGs. There is an MS "filter"
for it, although it means your pages won't validate.

http://tinyurl.com/7c89g
http://www.msdn.microsoft.com/workshop/author/filter/reference/filters/alphaimageloader.asp
 
L

Leif K-Brooks

Animesh said:
Use GIF. GIF works fine in all browsers. I learnt recently that
transparent PNGs are not handled nicely by IE (and indeed I observed
this as well).

Binary PNG transparency works just fine in IE. It's just translucency, a
feature that GIF doesn't have, that doesn't work right in IE.
 
A

Animesh Kumar

Leif said:
Binary PNG transparency works just fine in IE. It's just translucency, a
feature that GIF doesn't have, that doesn't work right in IE.

Interesting. I had some problems with transparency in a png file as
well. I made background transparent with GIMP if that is an issue.

Best
A
 
W

windandwaves

jafar said:
Hi.
I've made some buttons in The Gimp using transparency and saved as
.png's.

I only ever use GIFS and JPEGS in any of my sites because

a. they are usually smaller than PNGs
b. they are supported by all browsers

Use Gifs when you have images that need to be clearcut and have limited
number of colours (i.e. writing, words, letters, buttons, borders,
background-colors, etc...) and use JPEG for any photographic type material
(lots of colours).

I am sure you know this, but just in case you wondered, that is what works
best for me.

Images are the most important items (apart from music, videos, etc...) in
terms of size, so you can save a lot by paying close attention to choosing
the right image. In general, I found PNGs to be larger than GIFs or JPEGs.

Cheers

- Nicolaas
 
M

Mark Parnell

Previously in alt.html said:
I only ever use GIFS and JPEGS in any of my sites because

a. they are usually smaller than PNGs

Examples? I'm sure someone here can manage to get your GIFs (and
possibly some JPEGs) smaller by making them PNGs, without any loss of
quality.
b. they are supported by all browsers

So are PNGs, except for alpha transparency, which isn't even possible in
GIFs or JPEGs. So this point is moot.
In general, I found PNGs to be larger than GIFs or JPEGs.

In most cases that means either your image editor isn't very good at
compressing PNGs, or you're not selecting the right options.
 
J

jafar

Thanks for your replies. I guess IE isn't standard enough? ;)
Is it a good idea to offer the MS patch on my homepage?
 
J

jafar

Oops. Just looked at Mark's link. It's something I actually have to put in
my page. I think I'll just leave it so my page is standard and wait for MS
to fix it.
 
D

Dirk

jafar said:
I've made some buttons in The Gimp using transparency and saved as .png's.
The problem is that in every browser except IE the transparency works
fine. In IE the buttons have a white background instead. Is there any way
around this?

Reduce the number of colors! IE only can handle 8bit transparent gifs. I
think your png's have 24bit depth.

Dirk
 
N

Neredbojias

With neither quill nor qualm, windandwaves quothed
I only ever use GIFS and JPEGS in any of my sites because

a. they are usually smaller than PNGs
b. they are supported by all browsers

Also, girls might think it's an abbreviation for pregnant.
 
B

Blinky the Shark

Neredbojias said:
With neither quill nor qualm, windandwaves quothed
Also, girls might think it's an abbreviation for pregnant.

It would be a pretty poor abbreviation, since there's no "n" between
the "p" and the "g" in "pregnant.
 
D

Dennis

With neither quill nor qualm, windandwaves quothed
Also, girls might think it's an abbreviation for pregnant.

It would be a pretty poor abbreviation, since there's no "n" between
the "p" and the "g" in "pregnant.
[/QUOTE]
Obviously with a name like Neredbojias he can just stick in any letter any
place he wants.
 
B

Blinky the Shark

Dennis said:
It would be a pretty poor abbreviation, since there's no "n" between
the "p" and the "g" in "pregnant.
[/QUOTE]
Obviously with a name like Neredbojias he can just stick in any letter any
place he wants.

I withdraw my comment. :)
 
D

Dennis

On 24 Jun 2005 Blinky the Shark wrote in alt.html
I withdraw my comment. :)

Ok. The Nerd... is a interesting guy to have around in spite of his name. Now
if brucie would reapear.
 
B

Blinky the Shark

Dennis said:
On 24 Jun 2005 Blinky the Shark wrote in alt.html

But, it gets better...
Ok. The Nerd... is a interesting guy to have around in spite of his name. Now
if brucie would reapear.
^^^^^^^

Hah! *You* don't get to just make up words. ;)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,048
Latest member
verona

Latest Threads

Top