Last Updated: February 25, 2016
·
454
· david_treblig

Responsive block element that preserves ratio

Here is a codepen inspired by the embedresponsively.com iframe/video ratio preserving code just to show that it can be applied also to any block/inline-block level element.

http://codepen.io/david_treblig/pen/dFKva