View Full Version : CSS Height

04-20-2011, 09:54 AM
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:

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


#content_wrap {
width: 906px;
margin: 0 auto;

#content_side {
width: 185px;
float: left;
height: 100%;
background: #E4ECF2;

#content_middle {
width: 516px;
float: left;

04-20-2011, 11:20 AM
You'd need to use faux column (http://www.alistapart.com/articles/fauxcolumns/)