View Full Version : Font Sizing with CSS
10-25-2002, 07:13 PM
I am working with a piece of code where there is a tag specifying font size (font size=2). Is there any way to accomplish precisely the equivalent in CSS?
10-25-2002, 07:20 PM
10-25-2002, 07:46 PM
Thanks, Redhead. I have tried that, but pt gives you a fixed size, so that if you go into your browser and adjust the font size (larger, medium, etc), the font size stays fixed. That is a nice way to go and I prefer it, but I am trying to replicate the size and effect of size=2, which does adjust when the viewer makes the browser text size adjustment.
10-25-2002, 08:49 PM
Maybe using one of these:
xx-small, x-small, small, medium, large, x-large, xx-large
would do what you're looking for.
10-25-2002, 10:30 PM
Don't forget that the css spec also allows the use of percentages as well as larger and smaller for relative sizing.
10-25-2002, 10:32 PM
OK, Catman, and Roy, yes, those are good ideas. I will experiment with them. Thanks.
10-27-2002, 01:10 AM
Looks like x-small in the arial typeface is about equivalent to +2, if am looking at this right.
10-28-2002, 05:26 PM
You'll see that the list Catman posted has exactly 7 sizes listed which should correspond to the seven sizes used by the font tag.
10-28-2002, 08:29 PM
you can also use percentages, which is what i do. it gives you more control over the size of the font, but allows the user to resize them.
09-06-2003, 03:25 PM
Well, percentages and ems gives the user control over the font size, and to a lesser extent, so does the keyworded sizes. However, those seven keyworded sizes does not represent the seven sizes of the font tag. That is evident by that medium, being the fourth of the keyworded sizes, is the standard size, while 3 is the standard size of the font tag. Thus, you have to be careful with those.
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.