How to make three column layout having equal height using only css and html (no js)
Asked
Active
Viewed 399 times
3 Answers
2
Easiest way is to use faux column background technique.
You can also try giving three divs massive bottom paddings with massive bottom margins with a container with overflow: hidden
. It doesn't play nice with inline anchors though.

alex
- 479,566
- 201
- 878
- 984
-
@abdullah Nope, sorry. If you don't have to support < IE8, use `display: table-cell`. – alex Apr 07 '11 at 05:55
-
previous one was better.coz, i have to support ie7+ – thecodeparadox Apr 07 '11 at 06:02
0
div {display : table-cell;}
This Could Be Another Solution To The Problem! For More Information, Please See This Link: Is there a disadvantage of using `display:table-cell`on divs?

Community
- 1
- 1

Khizar Iqbal
- 435
- 2
- 11
- 18
0
<html><body>
<div>
<div style="float:left;height: 33.33%;width:10%;background-color:red">zdfsfs</div>
<div style="float:left;height: 33.33%;width:10%;background-color:blue">zgfsgsgfsgf</div>
<div style="float:left;height: 33.33%;width:10%;background-color:cyan">zvgzcxgvxz</div>
</div></body></html>

Poonam
- 4,591
- 1
- 15
- 20
-
-
I have given small width.you can increase width.and still content is larger then content will come out div and this solution will not work.I will try to find its solution and let you know if I got it. – Poonam Apr 07 '11 at 06:15
-
thanks. but i think solution given by 'alex' that i accepted is more better. try this. – thecodeparadox Apr 07 '11 at 06:24