I have following structure:
<th class="condition">
    <div class="progress_container">
        <div class="bar_container">
            <span class="progress_green" style="width:14%;"></span>
            <span class="progress_red" style="width:86%;"></span>
        </div>
        <div class="progress_text">14% %</div>
    </div>
</th>
I have a th element, class "condition" in a table, and chrome says it has width and height 132.5 x 40. Then I have div inside of it, class "progress_container", that has both width and height set to 100%, but result is 132.5 x 0, for some odd reason. And because of that, all else falls apart (height of every child is 0%). Why is this? How would I get height of parent element to work?
Here is the relevant CSS:
.progress_container{
    position: relative;
    width: 100%;
    height: 100%;
}
.bar_container{
    position: absolute;
    text-align: center; 
    vertical-align: top;
    width: 101%;
    height: 100%;
    top: -0.5%;
    left: -0.5%;
}
.progress_green{
    display: inline-block;
    background-color: #33ff33;
    height: 25px;
    border-radius: 2px 0px 0px 2px;
    clear:both;
}
.progress_red{
    display: inline-block;
    background-color: #ff3333;
    height: 25px;
    border-radius: 0px 2px 2px 0px;
    clear:both;
}
.progress_text{
    position: absolute;
    text-align: center; 
    vertical-align: top;
    top: 5px;
    width:100%;
}
 
    