4 ms·
You can read about the padding-bottom technique at http://alistapart.com/article/creating-intrinsic-ratios-for-video http://alistapart.com/article/creating-intr
by ivopetkov 11y ago
You can read about the padding-bottom technique at http://alistapart.com/article/creating-intrinsic-ratios-for-video http://alistapart.com/article/creating-intrinsic-ratios-for-...
It helps you preserve space for the image and prevents reflowing. If you have many images with unknown sizes there will be massive reflowing and the library can be tweaked to support that too if you really want it.
- pqdbr 11y agoThis would be awesome. At the same time, one could use something like ImageMagick to find out the dimensions of the picture and set this ratio programatically (http://stackoverflow.com/questions/16266933/rmagick-how-do-i-find-out-the-pixel-dimension-of-an-image http://stackoverflow.com/questions/16266933/rmagick-how-do-i...)
- ivopetkov 11y agoYes, server languages can do this job easily.