A curated collection of useful CSS snippets

Given an element of variable width, it will ensure its height remains proportionate in a responsive fashion (i.e., its width to height ratio remains constant). Resize your browser window to see the proportion of the element remain the same. and can be used as an alternative to such that the percentage value causes an element's height to become a percentage...

A curated collection of useful CSS snippets
Best 4 Web Design