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.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
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.