Results 1 to 3 of 3

Thread: firefox overlaps divs *amazingly irritating*

  1. #1
    Join Date
    Aug 2005
    Posts
    23
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default firefox overlaps divs *amazingly irritating*

    why does firefox let floated elements NOT stretch the height of container divs? is there a fix? this has caused me no end of annoyance. tia

  2. #2
    Join Date
    Dec 2004
    Location
    UK
    Posts
    2,358
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by gusblake
    why does firefox let floated elements NOT stretch the height of container divs?
    Because it's not supposed to, and other conforming browsers (like Opera) will act the same way.

    Floated elements are removed from the normal flow (like absolutely-positioned elements) so they do not affect the layout of (non-floated) block boxes. Only other floats and in-line boxes shift when encountering a float.

    is there a fix?
    Nothing is broken (except IE), but if you need to stretch a container, you can add an element (a div, for example) with the clear property which will move it below the bottom-most float.

    Mike

  3. #3
    Join Date
    Aug 2005
    Posts
    23
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    thanks

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
  •