I have parent div with a class row-fluid
, I want its child divs to be same height as the parent div.
<div class="row-fluid">
<div class="span2">
</div>
<div class="span7">
</div>
<div class="span3">
</div>
</div>
Here is my css code:
.row-fluid{
float: left;
width: 100%;
background: blue;
}
.row-fluid > .span2{
float: left;
width: 23.076923076923077%;
background: red;
}
.row-fluid > .span7{
float: left;
width: 48.5%;
background: yellow;
}
.row-fluid > .span3{
float: left;
background: green;
}
Here is the image that illustrates my divs:
The blue region is my parent div and the red, yellow and green region corresponds to its child divs.