I am trying to set child div height 100% to parent div. As it is a style thing, I don't want to use JS/JQ
, this should be done in CSS
. Here is the Link of Code and This is snippet:
HTML:
<div class="a">
<div class="c"></div>
<div class="b"></div>
</div>
CSS:
.a{
float: left;
background: red;
padding-right: 1px;
height: 100%;
}
.b{
position: relative;
float: left;
background: blue;
display: table;
height: 100%;
width: 29px;
}
.c{
height: 300px;
width: 90px;
background: grey;
float: left;
}
Please Don't use Position: Absolute/Relative
, that is not an option for me in my current code structure