Re:The end of the clearfix hack?
by pix64 on Thursday January 26, 2017 @03:50PM
(#13495132)
My favorite use of this is making a resizable box that always maintains the same aspect ratio. Padding % is out of the element's width. So width: 100%, padding-top: 50% will make a block that is 2:1 that resizes automatically.
[ Parent
| on HN ]
There are no comments on this comment yet.