Is there a way to align three blocks in the table-cell
layout so that p1
is at the top, p2
is at the bottom, and p3
is in the middle?
Here is the corresponding HTML:
<div id="table">
<div id="row">
<div id="r2"></div>
<div id="r3"></div>
<div id="r1">
<div id="p1">top</div>
<div id="p3">middle</div>
<div id="p2">bottom</div>
</div>
</div>
</div>
CSS
#table{
display: table;
width:500px;
height:500px;
max-height:500px;
min-height: 500px;
}
#row{
display:table-row;
}
#r1, #r2, #r3{
display:table-cell;
}
For more information, you can visit - http://jsfiddle.net/2ZF6J/