Skip to content

Instantly share code, notes, and snippets.

@johndhancock
johndhancock / Proportional Height CSS
Created March 24, 2015 21:29
This resizes a div's height proportionally to the width of it
#myDiv {
width: 100%;
height: 0px; /*arbitrary number, 0 may be best to use until jquery calculation runs */
}