Re:Writ – Opinionated, classless styles for semantic HTML
by theandrewbailey on Tuesday August 25, 2015 @09:06AM
(#10116132)
16px will always be 16px, unless you redefine CSS pixel size. pt is more scalable.
[ Parent
| on HN ]
Re:Writ – Opinionated, classless styles for semantic HTML
by err4nt on Friday August 28, 2015 @12:49AM
(#10133781)
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!