Forum Moderators: open
Is it possible to make a font size relative in a style tag, like it was in the availiable in Transistional HTML <font> object:
<font size="+3"> .. </font>
When converting to strict HTML i was forced to get rid of all the <font> objects and use CSS instead. That in consequence forced me to use {font-size:20pt} instead of the previous method.
But best is of course to base the font sizes on relative units, and never to decrease the size below 100% for normal text.
Ant thank You for not making me search for this in CSS reference. It's still a bit awkward to me... But I hope to learn how to move around it sooner or later.
For the purposes of CSS, one em also equals the height of the font, including the ascenders (the parts that stick up above the rest of certain letters, like b or f) and descenders (the parts that stick below in letters like p or y). In other words, font-size:100% equals font-size:1em.
An "ex" is a typographical unit equivalent to the height of the lowercase letter "x." Support for exes is not as consistent as support for percentages or ems.
<font size="3"> is the basefont size for most browsers-- essentially 100%/1em, depending on the typeface. You can experiment yourself by comparing an unstyled paragraph of text against various styled paragraphs.
See www.thenoodleincident.com/tutorials/box_lesson/font/ for one study of font size renderings.