News for hackers. Stuff that matters.
Re:Little-Known CSS Facts by grimtrigger on Wednesday April 30, 2014 @07:33PM (#7677209)
A nifty little trick regarding #5:

You can create elements that maintain their aspect ratio using width:100% and padding-bottom:100%. Unintuitive, since you wouldn't expect padding-bottom to be based of the width.

http://stackoverflow.com/questions/1495407/css-a-way-to-main...

There are no comments on this comment yet.