Its an amazing explication , but if the em unit is relative to the font size , and the font size is on em , and 1 em equals 16 px , then , there is no responsive here , we still using a fixed unit because we're using a reference to px ???
The important difference is that em ultimately depends on the user agent configuration, which may take into account the device and user preferences. That is, unlike we set a font-size to an absolute value somewhere, which is a big no in most cases.
Also, many elements change font-size; say your h1 has a font-size of 1.8em and your a.buttom has an outline of .2em, so a button in a heading will get a thicker outline than in the main text, according to the difference in font-size.
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.
Its an amazing explication , but if the em unit is relative to the font size , and the font size is on em , and 1 em equals 16 px , then , there is no responsive here , we still using a fixed unit because we're using a reference to px ???
The important difference is that
em
ultimately depends on the user agent configuration, which may take into account the device and user preferences. That is, unlike we set afont-size
to an absolute value somewhere, which is a big no in most cases.Also, many elements change font-size; say your
h1
has a font-size of1.8em
and youra.buttom
has an outline of.2em
, so a button in a heading will get a thicker outline than in the main text, according to the difference in font-size.