We would like to know how to all div columns to be the same height.
<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
div.equalheight {<!--from ww w .j av a2s . co m-->
display: table;
width: 100%;
}
div.equalheight .columns {
display: table-cell;
border: 1px solid;
}
div.equalheight .columns:first-child {
height: 20em;
}
</style>
</head>
<body>
<div class="row equalheight">
<div class="three columns">...</div>
<div class="three columns">...</div>
<div class="three columns">...</div>
<div class="three columns">...</div>
</div>
</body>
</html>
The code above is rendered as follows: