Using CSS I would like to restrict 1 dimension to never exceed a factor of the other.
For example this pseudocode:
max-height: (width * 0.75)px;
Would ensure that the height of the element never exceeds 75% of it's width, but it may be smaller.
Is something like this possible, or am I out of luck?
Edit: Please note that I'm not looking to make the height exactly 75% of the width, but rather I am looking to make sure it doesn't exceed 75%