Can you help me with the code below?
html
<div class="content">
<div class="col">
</div>
<div class="col">
</div>
<div class="col">
</div>
<div class="col">
</div>
</div>
css
.content{
border: 1px solid black;
width:940px;
margin:auto;
padding:10px;
padding-top: 10px;
-webkit-box-shadow: 7px 7px 5px 0px rgba(50, 50, 50, 0.75);
-moz-box-shadow: 7px 7px 5px 0px rgba(50, 50, 50, 0.75);
box-shadow: 7px 7px 5px 0px rgba(50, 50, 50, 0.75);
min-height: 1000px;
background-color: #FFFFFF;
margin-bottom:0;
}
.col{
float:left;
border: 1px solid red;
background-color:blue;
height: 2000px;
width:18%;
}
Check out the fiddle here.
I'm trying to make the content grow with the .col in height but if col is lower than 1000px, I want the content to remain at a height of 1000px. Doesn't the min-height property do that? I plan to fill col with images of varying heights in different columns so I can't predict the total height of each .col div.