ดูลิ้งค์นี้เป็นแนวทางครับ
http://www.cssnewbie.com/example/equal-heights/ อย่างแรกต้องทำให้เป็น Equal Height Columns ก่อนนะครับ ผมลองทำดูแล้วเป็นแบบนี้นะครับ ลองเอาไปปรับใช้ดู
โค้ดในเว็บตัวอย่าง แต่ให้เพิ่ม
position: relative; ตรงคลาส.column
#wrap {
width: 600px;
margin: 0 auto; }
.column {
float: left;
padding: 10px;
position: relative; }
#col1 {
width: 110px;
margin-right: 10px;
background-color: #E2DDC4; }
#col2 {
width: 200px;
margin-right: 10px;
background-color: #6B99F6; }
#col3 {
width: 210px;
background-color: #E87C5E; }
เพิ่มคลาสสำหรับ readmore
.readmore {
position: absolute; bottom: 0; }แทรกโค้ด readmore ลงใน html
<div id="wrap">
<h1>Equal Height Columns with jQuery</h1>
<div class="column" id="col1">
<p>This three-column design features three columns with significantly varying quantities of content.</p>
<span class="readmore"><a href="#">Read more</a></span> </div>
<div class="column" id="col2">
<p>However, despite the differing quantity amounts, these columns are exactly the same height. No tricks, no gimmicks, no resorting to repeating background images to fake our way to columnar nirvana. And certainly, no tables have been harmed in the making of these columns. </p>
<p>They're simply divs sharing a common class, all of which have been set to the same height.</p>
<span class="readmore"><a href="#">Read more</a></span> </div>
<div class="column" id="col3">
<p>And I think a single class is an addition we can all get behind.</p>
<span class="readmore"><a href="#">Read more</a></span> </div>
</div>
พอจะเข้าใจมั้ยครับ