IE Jpeg opacity?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Keith Hughitt

    IE Jpeg opacity?

    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
  • Bart Van der Donck

    #2
    Re: IE Jpeg opacity?

    Keith Hughitt wrote:
    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=2 5)"
    >
    Maybe MSIE could have problems if your JPEG-file has an unusual codec
    (?)



    Hope this helps,

    --
    Bart

    Comment

    Working...