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 3 of 3
  1. #1
    Regular Coder
    Join Date
    Oct 2008
    Posts
    185
    Thanks
    12
    Thanked 0 Times in 0 Posts

    Padding Is Not Showing Up at Bottom of Div

    The padding in my #outerwrapper div is not showing up at the bottom of the div (should be 20px of padding at the bottom of the div). Instead, the 2 divs inside the #outerwrapper div are extending straight to the bottom of the #outerwrapper div... there should be spacing at the bottom. What's wrong?

    And another question - is overflow:hidden on the #outerwrapper div necessary? I don't plan on extending the content within the #content and #sidebar divs outside the border of the #outerwrapper div.

    Here is the page.

  • #2
    met
    met is offline
    Regular Coder
    Join Date
    Oct 2009
    Location
    United Kingdom
    Posts
    728
    Thanks
    4
    Thanked 119 Times in 119 Posts
    the padding is being applied, you can see this in FireBug.

    you have a fixed height on #outerwrapper, remove it, add some content, and the layout appears fine.

    overflow:hidden isn't necessary in this situation - overflow:auto will clear the sidebar float nicely without risking any content being hidden. either will work though

  • #3
    Regular Coder
    Join Date
    Oct 2008
    Posts
    185
    Thanks
    12
    Thanked 0 Times in 0 Posts
    Got it. Thanks!


  •  

    Posting Permissions

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