div.stretchy-wrapper { width: 100%; padding-bottom: 75%; position: relative; } div.stretchy-wrapper > div { position: absolute; top: 0; bottom: 0; left: 0; right: 0; }