DEV Community

loading...

Discussion on: 15 CSS Relative units, how many do you know? em, rem, ex, cap, ch, ic...

Collapse
santosh profile image
Santosh Kumar

I always prefer rem once defining the root size in pixels.

Collapse
bytegasm profile image
Bytegasm! Author

Same. However every now and then I do end up using vw & vh too.