Why height 100% for the right floated column can't make it 100% height? Now i'm confused what 100% height really means.
https://jsfiddle.net/7ybLa9fj/
How to make 2 column to have equal height if I'm using float?
.wrap {
height: 100%;
overflow: hidden;
width: 400px;
}
.left {
float: left;
width: 50%;
background: #fafafa;
text-align: center;
}
.right {
float: right;
background: #ccc;
width: 50%;
text-align: center;
height: 100%; //make right has the same with left doesn't work
}
<div class="wrap">
<div class="left">
<p>
left content is long
</p>
<p>
left content is long
</p>
<p>
left content is long
</p>
<p>
left content is long
</p>
<p>
left content is long
</p>
<p>
left content is long
</p>
<p>
left content is long
</p>
<p>
left content is long
</p>
<p>
left content is long
</p>
<p>
left content is long
</p>
</div>
<div class="right">right content is not</div>
</div>