How can I make 4 perfect squares using bootstrap panels?
The width
is correct, but if I set the height to 50%
nothing happens. I don't want to manually set the height with 150px
for example because based upon the screen size the height needs to fluidly grow/shrink in size to match width
.
view
<div class="panel panel-default">
<div class="panel-body">
Basic panel example
</div>
</div>
css
.panel-default {
border-style: none;
border: none;
width: 49.5%;
height: 49.5%;
display: inline-block;
}
.panel-body {
background-color: #446CB3;
color: white;
height: 50%;
padding-top: 19%;
}