Very nice article bro. Most of the time I use only rem and em, you will hardly find absolute units like px in my projects. I usually set the font-size of the html to 62.5% (that means 10px). That makes it easier to use rem units, I know that 2rem will be 20px. For margins, paddings and media queries, I use em (never use rem for media queries).
You are viewing a single comment's thread from:
Hmmmm
I have learnt something from you😊, not to use rem for media queries
Also I would like to ask when is best to apply absolute units, Thanks @kushyzee for this great reply
Absolute units especially px can be used when you don't want a user to change the size of a particular element, maybe small things like shadows or borders but it's best not to use too much of absolute units, they are best used in prints.
Check out this video
We are the same. For my projects, you would not find any absolute units. Mostly em and rem...
They are basically all we need, absolute units aren't really needed that much