EM PX font

I have a problem with the font. I’m using EM and in the laptop the font is big and looks good, but in the phone it’s very very small. any ideas?

Hi,

Please note that em is not an absolute unit - it is a unit that is relative to the currently chosen font size. Unless you have overridden font style by setting your font size with an absolute unit (such as px or pt), this will be affected by the choice of fonts in the user’s browser or OS if they have made one, so it does not make sense to use em as a general unit of length except where you specifically want it to scale as the font size scales.

Use em when you specifically want the size of something to depend on the current font size.

You might want to try using PX with responsive text.

Thank you.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.