BGW wrote:
> Hello-
> I'm brand spankin' new to both these forums and HTML coding, so please
> be gentle. . .
>
> How can I create a static font size? I've got several tables(within
> tables, withing tables. . .) on a page, and while my main text can be
> viewed clearly regardless of whether the viewer has their browser font
> size set to smallest or largest, I need to keep certain text a static
> size so as to fit within a very specific area on screen. When I set
> my browser to "smallest," the text has weird breaks in it, when I set
> it to "largest," it oozes onto multiple lines with more weird breaks
> (my boss wants it on two lines, and two lines only!!!).
>
> I'm programming with Arachnophilia, and am operating on about a third
> grade level =P, so any assistance would be very much appreciated.
>
To set the font size use px - for instance the following would fix the
contents of the span at10px
<span style="font-size: 10px">Contents</span>
BUT
This is a *very* bad thing to do - tell your boss and quote the other
responses that this thread will surely bring when you're telling him/her.
The reason people use "larger" or "largest" is because they can't read the
text at the normal size - you will ensure that these people can't read your
web pages if you make it so that they can't use their resize option. It is
worth noting that it is *their* resize option and designers have no business
messing with visitors browser functionality.
And it's not just those with a visual handicap - look at the size of a pixel
on a 640x480 monitor and then look at a pixel on a 1600x1200 screen -
there's almost a 3-to-1 proportional difference. Make the text the right
size for a 1600x1200 screen and it's 3 times too big on a 480x640 screen;
make it right for the 640x480 screen and it's now unreadably small on the
1600x1200.
Alternatively, don't fix the size and work on the basis that the user knows
better than the designer what size is comfortable for them to read.
So, ask the boss which they'd prefer - text that fits on two lines or text
that is readable - it's a simple enough choice. And, if they get the answer
wrong, you could mention that the accessibility issue can, in the right
circumstances, put the site on the wrong side of the law. In the US, for
instance, see
http://www.humanfactors.com/downloads/thelaw.asp - and run
this quote from that page past them "It should be noted that organizations
concerned with various disabilities have filed lawsuits against commercial
entities over the issue of Web accessibility."
Use % or ems and your text will resize in proportion to the user's
preference - 100% is the default to which they've set their browser so
larger text is a set at, say, 120% and T&C stuff can go to 90%... The em is
sized at the visitors browser setting, so 1.2 em =120% and so on.
BTW - I do appreciate that you're just the messenger - it's not supposed to
be a rant at you

Best of luck with the boss.
--
PeterMcC
If you feel that any of the above is incorrect,
inappropriate or offensive in any way,
please ignore it and accept my apologies.