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 2 of 2

Thread: CSS Height

  1. #1
    New Coder
    Join Date
    Jul 2010
    Posts
    66
    Thanks
    11
    Thanked 0 Times in 0 Posts

    CSS Height

    Hi Guys,

    I am trying to get a child div to be the same height as the parent div.... Just can't seem to get it working... I don't want to have a fixed height for the parent div as this will be constantly changing. I want to get the "content_side" div the same height as the "content_wrap". This is what I have so far:

    Code:
    <div id="content_wrap">     
        
        <div id="content_side"></div>
        <div id="spacer"></div>
        <div id="content_middle"></div> 
        <div id="spacer"></div>
        <div id="content_side"></div> 
        
    </div>
    Code:
    #content_wrap {
    width: 906px;
    margin: 0 auto;
    }
    
    #content_side {
    width: 185px;
    float: left;
    height: 100%;
    background: #E4ECF2;
    }
    
    #content_middle {
    width: 516px;
    float: left;
    }

  • #2
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,853
    Thanks
    160
    Thanked 2,223 Times in 2,210 Posts
    Blog Entries
    1
    You'd need to use faux column
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)


  •  

    Posting Permissions

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