2

How to make three column layout having equal height using only css and html (no js)

thecodeparadox
  • 86,271
  • 21
  • 138
  • 164

3 Answers3

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
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