IE Jpeg opacity?

K

Keith Hughitt

A little off-topic, but, does anyone know if it's possible to set the
opacity of jpeg images in IE7+? For firefox, the css "opacity"
property works fine on most image types including jpegs. On IE,
however, the equivalent filter, "(filter: alpha(opacity=...)," only
works with PNG images.

Anyone know if it's possible to get the property to work for jpeg
images as well?

Thanks,
Keith
 
B

Bart Van der Donck

Keith said:
A little off-topic, but, does anyone know if it's possible to set the
opacity of jpeg images in IE7+? For firefox, the css "opacity"
property works fine on most image types including jpegs. On IE,
however, the equivalent filter, "(filter: alpha(opacity=...)," only
works with PNG images.

Anyone know if it's possible to get the property to work for jpeg
images as well?

As per my test, the following should work on MSIE6 (XP) and MSIE7
(Vista):

<img src="http://www.dotinternet.be/img/header/webdesign_e.jpg"
border="0"
style="filter: alpha(opacity=25)"
Maybe MSIE could have problems if your JPEG-file has an unusual codec
(?)

http://en.wikipedia.org/wiki/JPEG

Hope this helps,
 

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,776
Messages
2,569,603
Members
45,198
Latest member
JaimieWan8

Latest Threads

Top