DEV Community

Discussion on: What CSS font-size units do you prefer to use?

Collapse
 
taufik_nurrohman profile image
Taufik Nurrohman • Edited

Depends:

  • Fonts: PX under :root, EM or % others.

Else:

  • Borders: PX
  • Image Dimensions: PX
  • Margin/Padding: REM