Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Restrict font size in non-IE browsers

Status
Not open for further replies.

aaronjonmartin

Technical User
Jul 9, 2002
475
GB
Hi,

I have a webpage which gets all its style definitions from a css file, in Internet explorer the font size is fixed as in you cant make it larger or smaller than it is displayed. However when i check the site in non-IE browsers such as mozilla firefox it is possible to change the text size which in some cases breaks up my layout. I was just wondering if anybody knew a way i can stop this and set the font size to a fixed size in non-IE browsers aswell as IE?

Any help with this would be greatly appreciated.

Aaron

"It's so much easier to suggest solutions when you don't know too much about the problem."
Malcolm Forbes (1919 - 1990)
 
As far as I know font-size(s) defined in px units (in HTML or in CSS) never resized (in IE). Otherwise a browser can resize it.
 
There is a reason why fonts are allowed to be scaled. It is accessibilty feature for people who cannot see your set font size. I would suggest coding your pages so that fonts can be resized in any browser and not just non-IE.

But regarding your question: No, there is no way of fixing the font sizes in other browsers.
 

You could always convert all your text to images of text - that way (Opera aside ;o) your text will never scale.

I hope, however, you don't take my suggestion seriously, although it is valid... Vragabond's advice (allow for scaling) is a far better solution ;o)

Hope this helps,
Dan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top