David John Farmer
My quick playground for bits of JQuery and code...


Simply sets the height of an element to a specific ratio, works responsively too...

MaintainRatio Example Usage

The div below is 100% wide (with a cover-sized background image), it has no height set in CSS and as the window resizes it will maintain it's aspect ratio:

Im Square on Resize

Download MaintainRatio