Correct me if I'm wrong, but the math behind 1em -> 16 px is valid only for the default browser's settings I believe. If user has changed the default fontSize the "1em" means a size equals to the default, normal font.
That is my assumption because em totally depends on parents size so we can't say it depends on browser default because em uses closest parent size and the default is the last option for us.
Well your point also right if em is using browser size as a parent size.
Tech Lead/Team Lead. Senior WebDev.
Intermediate Grade on Computer Systems-
High Grade on Web Application Development-
MBA (+Marketing+HHRR).
Studied a bit of law, economics and design
Location
Spain
Education
Higher Level Education Certificate on Web Application Development
thanks for sharing ,I were read diff between rem or em on mdn ,but I am not able to understand what they said that , After read this article ......I understood properly .....
I'm Islam Ahmed, 21 Years.
I'm a student at the faculty of the science geology department.
Currently, I am a junior web developer with good experience in HTML & CSS,
Correct me if I'm wrong, but the math behind 1em -> 16 px is valid only for the default browser's settings I believe. If user has changed the default fontSize the "1em" means a size equals to the default, normal font.
That is my assumption because em totally depends on parents size so we can't say it depends on browser default because em uses closest parent size and the default is the last option for us.
Well your point also right if em is using browser size as a parent size.
It depends on parent font size
That's correct and just what I come to say
this is great thanks bro
I'm glad you enjoyed reading 😇
Thanks, that's great
I'm glad you found it useful 😇
A good concise guide that explains the gist of it. Nice mate 👍
I'm glad you enjoyed reading 😇
Very useful thank you
I'm glad you enjoyed reading 😇
thanks ღ( ´・ᴗ・` )比心
lol
thanks for sharing ,I were read diff between rem or em on mdn ,but I am not able to understand what they said that , After read this article ......I understood properly .....
It's great 😊
Can you tell me about vw and vh please 😅