Forum Moderators: not2easy
2. If you're designing a site that is dependant on a particular font size, then you have a very poorly designed site.
3. What you're asking for can only be achieved in the IE browser (I'm not sure if this "bug" was fixed in IE7 or not). You will not be able to prevent all browsers from being able to change the font size, because most of them are smart enough to keep control at the viewer's end instead of the designers.
Instead of trying to figure out how to do this, you should spend your time learning about why you should NOT do this.
Even IE have fixed their pixel resizing bug. Opera lets you overide any websites default by letting you set a minimum font size and all browsers have a zoom or text-resize feature
[edit] just to clarify the "bug" - IE6 and below won't let you resize if the text size is specified in px and was the last browser you could almost have relied on to do what you're asking
[edited by: SuzyUK at 9:00 pm (utc) on Feb. 21, 2007]
Fotiman:
(I'm not sure if this "bug" was fixed in IE7 or not)SuzyUK:
Even IE have fixed their pixel resizing bug. ...[edit] just to clarify the "bug" - IE6 and below won't let you resize if the text size is specified in px and was the last browser you could almost have relied on to do what you're asking
Hhhmmmm... admittedly I have used IE7 very little - just to test - but I didn't think IE7 had solved this "bug" of refusing to resize text that had been defined in 'px' (via the menu... View > Text Size) ...?! The 'zoom' feature yes, but not the Text Size menu option. I specifically tried this recently with an old site where the font-size was defined in px throughout - the View > Text Size menu option did nothing in IE7. Are there later versions of IE7 that do sort the problem, or am I missing something?
Also mentioned in this thread:
[webmasterworld.com...]
Opera lets you overide any websites default by letting you set a minimum font size
Firefox too.
Hhhmmmm... admittedly I have used IE7 very little - just to test - but I didn't think IE7 had solved this "bug" of refusing to resize text that had been defined in 'px' (via the menu... View > Text Size) ...?! The 'zoom' feature yes, but not the Text Size menu option. I specifically tried this recently with an old site where the font-size was defined in px throughout - the View > Text Size menu option did nothing in IE7. Are there later versions of IE7 that do sort the problem, or am I missing something?
I was pretty sure this wasn't fixed also - but, at least, holding Ctrl and scrolling with the mouse wheel no longer changes Text size, rather, page zoom.
While IE 7's page zoom isn't as good as Opera's, it's better than nothing :)