IMO:
px
em
rem
%
thanks to your great summary
Making the root font size a px (or vw/vh) value can break accessibility for some who change the font size through their browser settings.
Also line height can be kept unit less which acts like ems. ie: line-height: 1.5;
But otherwise I agree! π
Agreed with Dillon! Thanks for your addition.
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.
IMO:
px
) - Relative border width is ugly.em
) - When inline with text.rem
) - Case for margin between heading and paragraph.em
) - Case for different button size.em
or%
) - Case for heading font size and secondary font size.px
) - It is the root! Why bother with relative units? Relative to what??em
orrem
) - Because it needs to be relative to the font size. Unless you want to set a vertical rhythm and such.thanks to your great summary
Making the root font size a px (or vw/vh) value can break accessibility for some who change the font size through their browser settings.
Also line height can be kept unit less which acts like ems. ie:
line-height: 1.5;
But otherwise I agree! π
Agreed with Dillon! Thanks for your addition.