Jsfiddle: http://jsfiddle.net/techsin/csfvb91u/6/
For example take a layout like this:
<div class="cont">
<div class="a"></div>
</div>
css
.a {
background-color: blue;
height: 100%;
}
.cont {
min-height: 300px;
border:1px solid;
}
I'd expect div.a to be the size of .cont which is 300px due to min-height is set as such. However, that's not what i get. .a collapses and completely ignores height 100% UNLESS .cont is explicitly set. Ex: height 300px; no min.
Why Such flawed behavior? i need to understand reasoning.. And how can i overcome it.