But it's not even a fixed relationship within a device--it's just a default. I could browse page and rem would be 16px and then click through to a site where 1rem is 1vw.
And if you want to set a nicer tone you should start by not using the word "ACTUAL" in all caps.
HAHAHA, that's funny. All caps is just a way to emphasize text, my dude...
Having said that. My point in these threads is that besides viewport units and percentages, everything boils down to CSS pixels.
What is my purpose in clarifying that to everyone here? It's that if you say you use "physical units" like cm or "text-based" ones like rem because "a px isn't a device pixel", then you are missing information.
Sure, you can set the root font-size to something viewport related and use rem from then on — you win 🎉
But wait... That is just using rem as a variable and does not mean that rem is inherently more "relative" than px. Not to the device pixel, that is.
My actual, underlying, point would be that you should just hold your devices next to each other and decide for yourself: like I said, font-size is based on px for a reason: we created the CSS pixel in a way that using it across devices gives good results.
For stuff like paddings and text-indent, I use rem/em.
Borders, fixed-height navbar, shadows, tiled background-size, translate() values, I use px. And there is absolutely nothing wrong with that.
How do you even create shadows without px if they shouldn't grow with font-size??
There are lots of correct ways of emphasizing text in markdown. Caps means shouting. Laughing is all caps is obviously rude and I know you know this so you're getting blocked immediately.
(by the way: rem doesn't grow or shrink with font size. You're thinking of em. rem is guaranteed to be the same within a page.)
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.
I thoroughly enjoyed reading this thread
Me Too!
You can't imagine that "based on humans" means anything else than "consistent across devices"?
You obviously haven't read the article I linked. Holy cow are you smug, man...
But it's not even a fixed relationship within a device--it's just a default. I could browse page and rem would be 16px and then click through to a site where 1rem is 1vw.
And if you want to set a nicer tone you should start by not using the word "ACTUAL" in all caps.
HAHAHA, that's funny. All caps is just a way to emphasize text, my dude...
Having said that. My point in these threads is that besides viewport units and percentages, everything boils down to CSS pixels.
What is my purpose in clarifying that to everyone here? It's that if you say you use "physical units" like
cmor "text-based" ones likerembecause "apxisn't a device pixel", then you are missing information.Sure, you can set the root font-size to something viewport related and use
remfrom then on — you win 🎉But wait... That is just using
remas a variable and does not mean thatremis inherently more "relative" thanpx. Not to the device pixel, that is.My actual, underlying, point would be that you should just hold your devices next to each other and decide for yourself: like I said, font-size is based on
pxfor a reason: we created the CSS pixel in a way that using it across devices gives good results.For stuff like paddings and text-indent, I use
rem/em.Borders, fixed-height navbar, shadows, tiled background-size, translate() values, I use
px. And there is absolutely nothing wrong with that.How do you even create shadows without
pxif they shouldn't grow with font-size??There are lots of correct ways of emphasizing text in markdown. Caps means shouting. Laughing is all caps is obviously rude and I know you know this so you're getting blocked immediately.
(by the way: rem doesn't grow or shrink with font size. You're thinking of em. rem is guaranteed to be the same within a page.)