Does anybody have any ideas on how to make the same way of proportional scaling but with initial height value instead of width.
#container {
position: absolute;
width: 50px;
top: 10px;
left:10px;
background-color: blue;
}
#container:before {
content:"";
display:block;
padding-top: 100%;
}
The above code in a fiddle