Forum Moderators: not2easy
Even if the container doesn't have an explicit font-size declared, it still has an implicit font-size, and setting the width in em units will set it relative to the implicit font-size.
declared a font-size of 1emThis should have no effect whatsoever on anything, since it simply means “set the font size to whatever the font size already is”.
any browsers with less (or more) than 1em equivalent font-sizeI'm not sure what this is intended to mean. The browser's default font size is 1em, whatever that em may happen to be.
Even if the container doesn't have an explicit font-size declared, it still has an implicit* font-size, and setting the width in em units will set it relative to the implicit font-size.
I use a CSS reset but I never declare a font size
h3 {font-size: 150%;}
.footnote {font-size: 90%;}then that newly calculated size becomes the new em for as long as you are in the element. And if you have elements with different font sizes nested inside each other, it’s calculated relative to the most recent container. .newsize {font-size:80%;}
...
<p>blahblah
<span class = "newsize">blahblah
<span class = "newsize">blahblah
<span class = "newsize">blahblah
</span></span></span></p>See how that works? https://drafts.csswg.org/css-fonts-4/#propdef-font-sizeBut something tells me this is as likely to send you screaming in terror as it is to be useful :) span.pagenum {position: absolute; right: 2%; font-size: small;
font-weight: normal; font-style: normal; font-variant: normal;
text-align: right; text-indent: 0;}
The item “font-size: small”--on no account to be confused with “smaller”--means “the next size smaller than the overall default size”, where the overal default is called ”medium”. (Exactly how much smaller depends on the browser.) I use this for an element that might happen to occur inside something with a non-standard font size (a table, header, footnote, whatever it may be) to ensure that <span class = "pagenum"> always displays at the same size.