Quote:
|
Originally Posted by b0yakk
a simple question..
wht do i have to add to my html codes if i want my font size to be the same even after a user changes the text size on the browser...
thx
|
Think for a second about the reason why the browser has the option to resize text.
Give up? 1) So that the USER can control their own personal browsing experience and 2) So that people who NEED to can enlarge the text so that they can see it.
So why would you want to take away the user's control? 10:1 says you're asking this question because someone e-mailed you and said "d00d the font on your site is too small. I have my text-size preference set to 'small' and I can't see anything!"
So, in your mind, the solution is TAKE AWAY the user's control over their browsing experience by making it so that they can't resize the text?
IMO, you have two choices -
a) ignore people who ***** about the font size. They're in control over their own font size, and they should thank you for not using fixed-fonts like every other moron web designer or,
b) make the font large enough that it is still legible to people with their text-size preference set to "small".
Here's a hint -
IE's text-resize preference control is poorly made. It resizes based on whatever your size is set to. In other words, if you're using CSS and set your font size to 90%, then, the "small" setting makes the font size (about) 90% of that - or 81% of default. Move your font size to 80% and you're now down to 72% of default and so on. *
Mozilla and Opera do a much better job of resizing text, IMO.
I've found good success with using CSS keywords. For the most part, IE doesn't completely bugger that up too bad.
Regardless of your personal solution, keep something in mind -
Unless your site is an art or photography site, people are going there FOR THE TEXT CONTENT.
So if you're using small fonts that nobody can read, whats the point of having a website at all?
Additionally, usability studies show that reading performance is best with fonts at 12pt - in other words, a tad smaller than default.
* I'm using pretty arbitrary numbers just as a simple example