re: Most Common CSS Units Of Measure Explained VIEW POST


When do you use a specific measure over the others? Thanks!


A lot of it comes down to preference, but usually percentages are used for block level elements like <div>.

If you need something that's a fixed size you'd probably go with px.

The others are just a toss up.


I guess vh and vw measures will be more helpful because it adjust based on screen size. But yes, each measure have it's own importance.

code of conduct - report abuse