I need to ensure that the height of two div
's is equal, with one stretching to match the height of the other if necessary. I am looking for a solution using only CSS
. Here is the code I have so far (Fiddle Link):
HTML:
<div class="common">
lorem ipusm random text just for check
</div>
<div class="common">
lorem ipusm random text just for check lorem ipusm random text just for check
</div>
CSS:
.common{
border:1px solid red;
float:left;
margin-left:5px;
width:20%;
padding:5px;
}
Check out the fiddle for more details.