DEV Community

Discussion on: Units in CSS (em, rem, pt, px, vw, vh, vmin, vmax, ex, ch, ...)

Collapse
 
sebbdk profile image
Sebastian Vargr

Nice article, easy to skim through and to the point, thank you! :)

I have to admit, i still use px everywhere in practice.
Occasionally i use vh and vw for layout and such.

Someday i will get an opportunity to make or implement a system that uses proper font scaling... Or so i keep telling my self.

Collapse
 
deiga profile image
Timo Sand

A quick way to jump on the relative size bandwagon: Replace all uses of px with rem and adjust accordingly :)

Collapse
 
sebbdk profile image
Sebastian Vargr

Reporting back, did this.

Thank you.

Thread Thread
 
deiga profile image
Timo Sand

Nice! πŸŽ‰

Collapse
 
sebbdk profile image
Sebastian Vargr

I need to align it with teams of mixed experience already making lots of other more major mistakes, telling people to use px values is a lot easier than adding to the pile of things to learn :/

I agree tho, it’s a good way to start a migration. :)