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.
Written by David Lapointe Gilbert
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Css
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#