Padding-bottom/top in flexbox layout

Update September 2020 Firefox and edge have implemented the behaviour from the specs and margin + padding for flex elements are both calculated according to the width of the containing block. Just like block elements. Update February 2018 Firefox and edge have agreed to change their behaviour on top, bottom margin and padding for flex … Read more

How to scale SVG image to fill browser window?

How about: html, body { margin:0; padding:0; overflow:hidden } svg { position:fixed; top:0; bottom:0; left:0; right:0 } Or: html, body { margin:0; padding:0; overflow:hidden } svg { position:fixed; top:0; left:0; height:100%; width:100% } I have an example on my site using (roughly) this technique, albeit with 5% padding all around, and using position:absolute instead of … Read more

Is there a list of screen resolutions for all Android based phones and tablets? [closed]

(out of date) Spreadsheet of device metrics. SEE ALSO: Device Metrics – Material Design. Screen Sizes. ————————— —– ———— ————— ——- ———– —————- — ———- Device Inches ResolutionPX Density DPI ResolutionDP AspectRatios SysNavYorN ContentResolutionDP ————————— —– ———— ————— ——- ———– —————- — ———- Galaxy Y 320 x 240 ldpi 0.75 120 427 x 320 4:3 … Read more