3 ms·
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 wo
by grimtrigger 12y ago
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-maintain-aspect-ratio-when-resizing-a-div http://stackoverflow.com/questions/1495407/css-a-way-to-main...