SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    I meant that to happen silver trophybronze trophy Raffles's Avatar
    Join Date
    Sep 2005
    Location
    Tanzania
    Posts
    4,662
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Opacity in IE6 and hasLayout

    Opacity in IE6 really is very buggy. Only today did I discover that it renders text nastily unless it has a background colour or image. And I spent quite a while toiling over this until I realised that height:1% wasn't triggering hasLayout (needed for filter property to work). Floating, absolutely positioning and the horrid zoom all worked. Why not height?

    Here is an example. The top and bottom text about the dam both have height:1%, the second one also has absolute positioning.

    I'm just curious about this and wonder if I'm missing something here about why height isn't triggering hasLayout, or if it's something specific to the filter property.

  2. #2
    SitePoint Wizard bronze trophy Centauri's Avatar
    Join Date
    May 2007
    Location
    Newcastle, Australia
    Posts
    3,718
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Probably due to the fact that height cannot be applied to an inline element - the absolute positioning is converting the span into a block element, capable of accepting height.

  3. #3
    I meant that to happen silver trophybronze trophy Raffles's Avatar
    Join Date
    Sep 2005
    Location
    Tanzania
    Posts
    4,662
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Holy crap. That'll be it. What a moron.

    Absolute positioning triggers hasLayout anyway, so the height would be redundant.

    Thanks Centauri.

  4. #4
    The CSS Clinic is open silver trophybronze trophy
    Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    39,865
    Mentioned
    159 Post(s)
    Tagged
    4 Thread(s)
    Holy crap. That'll be it. What a moron.
    lol

    Yes you are correct and dimensions aren't applicable to inline elements and therefore "haslayout" does not get applied.


Bookmarks

Posting Permissions

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