3 ms·
CSS 'px' units don't map directly 1:1 with pixels in your screen, it's weird. :/ In general, CSS 'PX' is great for spacing inside and outside containers. I oft
by err4nt 11y ago
CSS 'px' units don't map directly 1:1 with pixels in your screen, it's weird. :/
In general, CSS 'PX' is great for spacing inside and outside containers. I often use 5px or 15px padding in places that don't directly touch or contain text. Where text is involved I like to define my spacing in 'em' units because those are relative to the 'font-size', so if I change the font size the spacing will still look great!