3 ms·
16px will always be 16px, unless you redefine CSS pixel size. pt is more scalable.
by theandrewbailey 11y ago
16px will always be 16px, unless you redefine CSS pixel size. pt is more scalable.
- err4nt 11y agoCSS '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!