Quick Fix I.E6 Compatibility Issue ****

Discussion in 'CSS' started by DylanM, Feb 17, 2009.

  1. #1
    DylanM, Feb 17, 2009 IP
  2. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #2
    Not tested.

    It looks like you didn't set hasLayout for IE6. Overflow auto does it for IE7, and works as it's supposed to in modern browsers and IE8. Try this:
    * html #faux_top,
    * html #faux {
      height: 1px;
      }
    Code (markup):
    Please note, it's star+space+html+space+selector

    That's known as the Holly hack, and it's used to trigger hasLayout in IE≤6. See my article, enclosing float elements for more info.

    cheers,

    gary
     
    kk5st, Feb 17, 2009 IP