The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › CSS › Making a whole site with em instead of pixel?
Hi, does it make sense to make all numbers in em instead of pixels? Thanks!
https://css-tricks.com/why-ems/
Yes – I find ems over pixels very useful. It’s very handy for scaling/resizing en masse https://css-tricks.com/building-resizeable-components-relative-css-units/
So this means:
Fonts -> em Boxes – > % (or em?) Breakpoints – > px Max layout width -> ps
???
Use whatever works best for your project. Try out different units and make the assessment based on your own needs. There’s no wrong answer as such.