Re:PX or REM in CSS? Just Use REM
by layer8 on Sunday December 04, 2022 @12:20AM
(#33850860)
Because they don’t want the layout to get bigger, but just the text size within the existing layout.
[ Parent
| on HN ]
Re:PX or REM in CSS? Just Use REM
by SebastianKra on Sunday December 04, 2022 @07:07AM
(#33852932)
But then the articles recommendation doesn't make sense, because using rem for everything would also scale the layout.
I'd guess that you should always use pixels except for /(max-)?(width|height)/, because these are the only properties that may make assumptions about the size the content.