In this case, I have a css like this:
.w{
width:80%;
display:block;
}
.d{
width:14%;
display:inline-block
}
and it's my html
<div class="w">
<a href="#" class="d">1</a>
<a href="#" class="d">2</a>
<a href="#" class="d">3</a>
<a href="#" class="d">4</a>
<a href="#" class="d">5</a>
</div>
So the question is, Is that possible to make .d
height equals by width of it?
I mean some thing like: height: 14% OF WIDTH
.
I've read all units of css here, but I couldn't find anything useful