Forum Moderators: open
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.
<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?
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
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!