DEV Community

Discussion on: %, px, em, rem, viewport...How to know which one to use in CSS for responsive design?

Collapse
 
alohci profile image
Nicholas Stimpson • Edited

You can use all of them. No CSS units are incompatible with responsive design, so you should use the ones that fit each particular layout requirement as you address it.

Collapse
 
jharteaga profile image
Jose Arteaga

Exactly that is the point, I have to go a little bit deeper with this units and understand them, and so identify which one is more convenience for a specific situation. Thanks!!