Html: How Common Is It That Different Browsers Render 1em At A Different Actual Px Size?
As you know, you can specify dimensions with CSS in px or em. As far as I understand it, em means 'line height of the current element's fonts'. My approach currently is to always u
Solution 1:
No. em
s are relative to the user's chosen font size, px
aren't. The default font sizes of desktop browsers are about the same in pixels, but mobile devices in particular will vary even before user adjustment.
You should use em
for a margin in text content that should be sized similarly to the surrounding fonts, and px
for a margin that has to line up with images used by the page layout.
Post a Comment for "Html: How Common Is It That Different Browsers Render 1em At A Different Actual Px Size?"