Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
andreash
· 11y ago · 0 comments
I think the "Pixels vs ems" was a bit short. Anyone?
http://primercss.io/guidelines/
Comments
[–]
speg
11y ago
Yeah, I thought rems were the new thing?
[–]
mdo
11y ago
All of GitHub is basically in pixels, save for our Markdown styles—for easy modification across devices, we use `em`s. It'd be a huge project to update that to `rem`s anytime soon.
[–]
andreash
OP
11y ago
If you'd make it from scratch today, what technique would you use? html {font-size:62.5% } with REM?
[–]
mdo
11y ago
Set an HTML font-size—likely 16px—and use body { font-size: 1rem; }. Allows for easy media query scaling of type.