SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Guru Zygoma's Avatar
    Join Date
    May 2006
    Location
    York, Uk
    Posts
    916
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Overflow auto fixed my problem but why?

    On this page http://tutorial.davidclick.com/philpotts-clone.html & illustrated here http://i216.photobucket.com/albums/c...ps1b64d973.jpg I added a overflow: auto; to the #header & that preserved the height of the conatining div.

    But why did this work? The reason I ask is that i understand overflow: auto; is a fix to the known problem "If floated elements habe non floated parent elements, the parent will collapse."

    So my question is please...

    "Why did overflow:auto; preserve the header hight & prevented it from collapsing"

    Grazie tanto,
    David
    I have had a perfectly wonderful
    evening, but this wasn't it-
    Julius "GROUCHO" Marx - 1890-1977
    http://www.davidclick.com

  2. #2
    SitePoint Wizard bronze trophy chris.upjohn's Avatar
    Join Date
    Apr 2010
    Location
    Melbourne, AU
    Posts
    2,189
    Mentioned
    17 Post(s)
    Tagged
    1 Thread(s)
    What version of Firefox are you using as I could replicate it in Firefox 18 or Chrome 25

  3. #3
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,114
    Mentioned
    448 Post(s)
    Tagged
    8 Thread(s)
    Likewise, I don't see overflow:auto doing much there. What do you mean by "collapsing" in this case. Not much changes with overflow: auto turned off ... not in my browser, anyhow.
    Facebook | Google+ | Twitter | Web Design Tips | Free Contact Form

    Forum Usage: Tips on posting code samples, images and more

    Forrest Gump: "IE is like a box of chocolates: you never know what you're gonna get."

  4. #4
    SitePoint Guru Zygoma's Avatar
    Join Date
    May 2006
    Location
    York, Uk
    Posts
    916
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Grand aplogies the overflow:auto it is totally redundant, apologies for the red herring but it does figure that is should have no effect.
    I have had a perfectly wonderful
    evening, but this wasn't it-
    Julius "GROUCHO" Marx - 1890-1977
    http://www.davidclick.com


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
  •