I know that it\'s possible to specify an element\'s height relative to its width, because percentage margin and padding values are calculated relative to its width. Is it possib
I found one way to do this without Javascript. Make an image with the ratio, and embed it into the HTML, scaling it accordingly, so that the parent element can inline-block fit to the image size.