IE6 And PNGs With ASP.NET

by Jack 2/2/2008 12:58:08 PM

Here's a little bug that caught me out. Looking at one of my new sites that has transparent PNG images in IE6, I was surprised to see that the transparency just doesn't work. It's a well documented bug in IE6 apparently with several work fiddly work arounds. No problem with .NET though – just create GIF file versions of the PNG files and swap the images over if the user is browsing the site with IE6:

If Request.Browser.Browser & Request.Browser.MajorVersion = "IE6" Then

imgLogo.Src = "images/logo-ie6.gif"

End If

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Category: Web Development



Related posts

Add comment


(Will show your Gravatar icon)  

  Country flag

[b][/b] - [i][/i] - [u][/u]- [quote][/quote]



Live preview

12/5/2008 1:44:50 PM

Powered by BlogEngine.NET 1.3.1.0

About Me

Jack And Cheryl At The Seaside I write songs, build websites, play piano...


E-mail me Send mail

What's going on in Jack's head right now..


    FOLLOW ME ON TWITTER

    Calendar

    <<  December 2008  >>
    MoTuWeThFrSaSu
    24252627282930
    1234567
    891011121314
    15161718192021
    22232425262728
    2930311234

    View posts in large calendar

    Pages

    Recent posts

    Recent comments

    Tags

    Don't show

      Disclaimer

      The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

      © Copyright 2008

      Sign in