We would like to know how to create div container with same height div children.
<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
.con {<!-- w ww . j av a 2s . c o m-->
height: 100%;
width: 400px;
display: table;
table-layout: fixed;
}
.col {
display: table-cell;
border: #000000 solid 1px;
}
</style>
</head>
<body>
<div class="con">
<div class="col">asd</div>
<div class="col">
asdasdasd <br />asdas <br />asdasd <br />asdasd <br />asdasd
</div>
<div class="col">asd</div>
</div>
</body>
</html>
The code above is rendered as follows: