News for hackers. Stuff that matters.
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.

There are no comments on this comment yet.