Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Senior Coder
    Join Date
    Jun 2008
    Location
    Cornwall
    Posts
    2,098
    Thanks
    297
    Thanked 12 Times in 12 Posts

    Exclamation Transparent PNG's In IE6?

    Hi All,

    I have downloaded a fix to get rid of the grey background on Transparent PNG images.

    the read me says
    You should use the conditional statement in your html:

    <!--[if lt IE 7]>
    <script type="text/javascript" src="unitpngfix.js"></script>
    <![endif]-->

    to make sure that it only loads in IE6.

    but when i insert this into my dreamweaver page in the heading its greyed out "like a comment" should i remove the <!-- bits or is it supposed to be grey'd out?

    cheers all,

    p.s is there a way to test my site in diferent browsers without downloading them?

    many thanks
    Luke
    Last edited by LJackson; 03-30-2009 at 02:34 PM.

  • #2
    Regular Coder BoldUlysses's Avatar
    Join Date
    Jan 2008
    Location
    Winston-Salem, NC
    Posts
    938
    Thanks
    10
    Thanked 190 Times in 187 Posts
    It's supposed to be greyed out. That's just the syntax highlighting; most (if not all) code editors have that feature. One of IE's peculiarities is that it still processes the information in certain kinds of comments (like the conditional comment you have above), whereas all other browsers won't.

    The question is: Does it work? To test your site in IE a couple of options are:

    - IETester (buggy but works most of the time)
    - Browsershots.org (very useful but there's a wait and you can't interact with the site)

    Of course the ideal option is just to find somebody who still has IE6 installed, but that's getting harder and harder--a good thing, too, since there will come a day when its userbase will drop low enough that most of us will choose to discontinue support.
    matt | design | blog

  • Users who have thanked BoldUlysses for this post:

    LJackson (03-29-2009)

  • #3
    Senior Coder
    Join Date
    Jun 2008
    Location
    Cornwall
    Posts
    2,098
    Thanks
    297
    Thanked 12 Times in 12 Posts
    Ah cool thanks for clearing that up for me mate

    its a real shame IE is so difficult to cater for
    but thats IE for you.

    Cheers
    Luke

  • #4
    Senior Coder
    Join Date
    Jun 2008
    Location
    Cornwall
    Posts
    2,098
    Thanks
    297
    Thanked 12 Times in 12 Posts
    Applied the code and using browsershots.org checked the page in IE6 and it looks fine now

    Thanks mate
    Luke


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •