Forum Moderators: open

Message Too Old, No Replies

Text size stay

Question on how to create static text size

         

Blue_Tetra

10:54 pm on Sep 24, 2002 (gmt 0)

10+ Year Member



Hallo,

I'm wondering how can I make a page with static text size. For example when the user use the text size very small or very large (view -> text size), it will mess up the tables, layers layout, etc. I normally build a website with medium text size.

Example: www.nba.com -> the text size stays although the text size very large or very small.

Need help.

Many thanks.

c3oc3o

11:32 pm on Sep 24, 2002 (gmt 0)

10+ Year Member



You define it in CSS in points (pt) or pixels (px). Point sizes are different on Mac and Windows, so you should go with pixels, for example by placing this in the <head>:

<style type="text/css">
<!--
body { font-size:12px; }
//-->
</style>

AFAIK that only prevents IE/windows from changing font sizes though, I believe both IE/mac and Mozilla allow changing it no matter how you specify it.
Actually, this is a Good Thing you shouldn't be messing with in the first place - would you rather have someone see funny table sizes or not being able to read your content at all?

madcat

12:37 am on Sep 25, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



it will mess up the tables, layers layout, etc. I normally build a website with medium text size.

Blue_Tetra-

All kinds of people need to access your information. So it is really the wrong environment for fixed type. Fixed anything really.

Eric_Jarvis

3:51 pm on Sep 25, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I have variable vision due to diabetes...if my blood glucose level is particularly high, low or changing fast my eyesight is extremely poor...I NEED to be able to alter text sizes on web sites if I'm going to use them at all

please don't use "brittle" layouts...they make the web an awful lot more effort than it needs to be for a lot of us...and they fail catastrophically in a wide range of situations, making the precision layout a complete waste of effort in the first place

knighty

3:59 pm on Sep 25, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Dont listen to them Blue_Tetra!

I use PX sized fonts pretty much most of the time, never heard any complaints and I've been doing this for years!

If you want to control the layout you go ahead and use pixels aint nothing wrong with them.

Besides have you seen those so called fluid sites? they may be "user friendly" but they're darn ugly! - plain, boring and uninspiring - lets try and keep some level of appeal!