PDA

View Full Version : Keeping Font size?


Stuart H
01-17-2004, 05:26 PM
How do I constrain the font size of my text?

I want it to stay the size it is even if the browser settings are set to large or larger.

Can this be achieved in CSS?

justame
01-17-2004, 05:41 PM
stu...
ya mighhht wannna just a checkout® thisss thread...

http://www.codingforums.com/showthread.php?s=&threadid=30663&highlight=font+size

/me found it by searchin' on the ol' forum for...
font size :O))) n' just a goodluck®

liorean
01-17-2004, 05:45 PM
The reason for text zooming is just that a user should be able to resize the text to a size that they feel comfortable with. Iew sadly don't scale sizes declared in px, but all other browsers do.

Paul Jr
01-17-2004, 07:01 PM
Originally posted by liorean
The reason for text zooming is just that a user should be able to resize the text to a size that they feel comfortable with. Iew sadly don't scale sizes declared in px, but all other browsers do.
SCORE
IE: -1
FireBird: 1

:D :thumbsup:

me'
01-19-2004, 08:46 PM
Originally posted by Paul Jr
SCORE
IE: -1
FireBird: 1 Only 1, -1? Try 500, -500, or even [insert large positive number here], [insert large negative number here]!

Stuart H
01-19-2004, 08:49 PM
Cheers Guys - I take it this is easy to achieve in CSS?

me'
01-19-2004, 08:54 PM
Define "achieve". As liorean said, keeping a constraint on the text sizes is a very bad idea. Think accessibility — what if the visually impared want to view your site, but the text is too small? Well, those that are using Mozilla would just hit the ol' Ctrl + + (that would be, Ctrl and at the same time, +), and their problems are (theoretically) solved. So, you can use the ideal screen medium font measurement, px:font-size: 12px;One problem. Guess what. IE? Yep. Doesn't scale px measurements, one of the most annoying things about web design. What's normally done is something like this:body, html { font-size: 16px }
div#content { font-size: smaller }Using 'relative font sizes' (smaller | larger), or 'absolute font size keywords (xx-small | x-small | small | medium | large | x-large | xx-large), which IE can scale.