I don't think you can. Even if I code the font to be 20px, then the user uses the "+" or "-" font size option in the browser, it still makes it larger or smaller.
These options are there to assist users. Think of the visually impaired. They often need to boost up the text size.
Personally, I build with pixel size. Then, on a broser with default settings it appears as I want it to. Then if they choose to up the size, that is out of my control.
-----------------------------------------------
These are endless galaxies which are yours.
You can journey to infinity
through the endless passages of the cosmos.
Even better. This all belongs to you.
This is your mind.
You can't, as far as I know, and you shouldn't!
you can specify it but people need to be able to change it if they want to. The idea is to design flexibly so even if the size changes, you're page won't come apart.
I'm just happy that my Opera has "Zoom" function that allows me to set the text size as I want it, regardless what was done on any page in CSS. That's why (but not only because of that) it's the browser of my choice.
In ie I customeized my toolbar and added the "+" and "-" icons and I test when I build pages and look at it in different size. I know for one, I do a page for an arthritis doctor and HE has to crank up the size to read anything. I am sure his patients are worsE! So I had to take that into account in building the page.
But normally I just build for the defaults.
Opera is good. I like it alot. I am starting to use it more and more. They all have the "zoom" function somewhere. they just don't call it zoom. -----------------------------------------------
These are endless galaxies which are yours.
You can journey to infinity
through the endless passages of the cosmos.
Even better. This all belongs to you.
This is your mind.
The users don't need to use your style sheet! In IE6 at least, I can tell the browser to ignore font styles/sizes, page colours or I can even use my own stylesheet to format the pages.
you should all consider a few factors when designing with strict font sizes. Jakob Nielsen has a usability column on his web site and one of the alertbox as he calls it deals with the pros and cons of forcing font size on the client side. A must read for anyone designing web pages :
Hmm, I wonder where I got that "locking - idea" from. Because I'm used to percentages, I guess I just assumed that a fixed font-size was fixed.
My idea didn't work?
I used IE6, and it worked fine. I went into:
VIEW > Text Size >
and selected every option, and it stayed at the 20px the whole time...and what about those + and - buttons? Are those on IE6 or are you talking about Opera? I don't see them in IE 6.
BTW -- Does Opera have a new browser out with javascript enabled? I have Opera 6.03 and it can't do almost anything!
this isn't answering your question, so apologies in advance - but why would you want to restrict your users in this way? Surely one of the best things about the web is that the user determines what they want to see/read and how they view it? Surely the more adaptable the website, the more accessible it is?
I think you're fighting a losing battle in any case. if you want to keep the font size absolute, you would have to make very very sure that it looks the same in every browser..my advice would be to re-think your philosophy!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.