Comment by nextaccountic

Comment by nextaccountic 5 days ago

0 replies

> Text scaling doesn't need to replicate zoom. If you use font-relative units like em and rem everywhere that you set a length, everything will scale up the same way as browser zoom. > Instead, only use font-relative units on things like text, images and icons. You don't need to use it on properties like margin, padding or gap. > If you do that, there's more room for the content, which is especially important on portrait mobile devices.

So, for margin and padding, one should use px? Or is there a better unit?