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
    New to the CF scene
    Join Date
    Feb 2012
    Location
    Sweden
    Posts
    9
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Same height of divs

    Hi!
    Please have a look at this site: http://www.hem.skyrev.se/kontakt/kontaktuppgifter.

    I want the left sidebar to have the same height as the content. Or if the content is shorter than the sidebar I just want the height of the contentContainer to be set by the sidebar instead. As you can see I have added min-height: 100% to the sidebar and I thought this would work. Isn't the percentage value supposed to be relative to the containing div? This is not working as I would have expected from reading about the height property.

  • #2
    New Coder
    Join Date
    Jan 2012
    Posts
    36
    Thanks
    1
    Thanked 0 Times in 0 Posts
    try

    Code:
    {
    height: 100%
    }
    for the sidebar.

  • #3
    Senior Coder
    Join Date
    Jan 2011
    Location
    Missouri
    Posts
    4,105
    Thanks
    23
    Thanked 594 Times in 593 Posts
    Because you are using a grid lay-out system, I think you are committed to using faux-columns. See this article http://www.alistapart.com/articles/fauxcolumns/


  •  

    Tags for this Thread

    Posting Permissions

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