I have some simple CSS and I don't know why it isn't working. It uses percentages and I have labeled both and I still don't understand why it works. Here's the code
.BoxHeight {
height: 100%;
}
#Box {
margin-top: 0%;
margin-left: 3%;
width: 90%;
height: 80%;
background-color: red;
}
<div class="BoxHeight">
<div id="Box"></div>
</div>