tags:

views:

267

answers:

3

I see this from source code of a web site:

<font size="-2">@2009 </font>

What does it mean when size is negative?

+3  A: 

It means the font size of @2009 should be -2 units (i.e. 2 units smaller) relative to the content around it.

routeNpingme
what's the unit here?px or em?
Shore
No units, afaik.
Robert Harvey
When no "unit" is specified it's just a font size of 1 to 7. Honestly not sure how each browser calculates the "units" into actual font size (px/em/etc) but perhaps someone knows the equation here...
routeNpingme
Each browser is free to interpret the relative size as it sees fit. Some non-visual browsers may even interpret the relative font to be relative loudness of read-back.
Eric J.
I think they're fairly equivalent to the `small`, `medium`, `large` etc keywords from CSS, with 3 or 4 being the "medium".
DisgruntledGoat
A: 

It means two notches smaller than the default text size in the browser.

Robert Harvey
+3  A: 

That is a deprecated style of markup. Nobody should be using it anymore.

Back in the old days, before CSS, you could use the <font> tag to control the relative size of text on the page. A "-2" simply meant two sizes smaller than your base font size.

Font sizes ranged from 1 to 7 in first generation browsers, if I recall correctly.

womp