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 noneforit's Avatar
    Join Date
    Apr 2009
    Location
    England
    Posts
    268
    Thanks
    10
    Thanked 20 Times in 20 Posts

    Why does my links element not sit inside the wrapper?

    Hello

    I have a #wrapper element which will effectively hold all the main content of the site

    I have created some links down the left but they seem to sit below to bottom of the wrapper

    I assumed the wrapper (with its height set to 100%) would simply expand as more elements were added below the header?
    I don't want to give the wrapper element a static height as it needs to dynamically expand

    link to live site is:

    www.r66pug.com

    Thanks

    Laurie

  • #2
    Master Coder
    Join Date
    Dec 2007
    Posts
    6,682
    Thanks
    436
    Thanked 890 Times in 879 Posts
    try:
    Code:
    #wrapper {
       overflow: auto;
    }
    or add after the div with links another div:
    Code:
    <div style="clear: both;"></div>
    best regards

  • #3
    Regular Coder noneforit's Avatar
    Join Date
    Apr 2009
    Location
    England
    Posts
    268
    Thanks
    10
    Thanked 20 Times in 20 Posts
    Thanks worked great

    Just getting back into coding after a while out so forgot about the Clear:Both


  •  

    Posting Permissions

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