Jump to content
xisto Community
Sign in to follow this  
kvarnerexpress

Browser Altering Font Size

Recommended Posts

Is there a way to make the text on a page stay the same size, even if the user clicks on the 'Enlarge text size' button or the 'Decrease text size' button within browsers.I know you can use an image, but that makes the site too big.I also am aware of the need to give the user control, but for particular reasons a particular section of text on the site needs to stay the same size. It doesn't matter if the text around it is enlarged or decreased. It is just a particular section. Any suggestions appreciated.Also, as an aside, is there a way you can completely disable the function, just like you can disable the right mouse click, etc.Thanks.kvarnerexpress

Share this post


Link to post
Share on other sites

well that would get rid of the purpose of the text size feature. Some people have bad eyes...What reason do you mean for doing this?

Share this post


Link to post
Share on other sites

I used to declare pixels or points in CSS for the font size, and it never resized, but im not sure exactly when, browsers started resizing, even when in css you did not have measure in EM or other relative sizes.Anyway, its been also a time since i quit doing that, so you might try this and see if it works... (using pixels or points for the font size, instead of relative measure) But you have to declare this in the most specific rule that applies to your text.

Share this post


Link to post
Share on other sites

As far as I know, the only fool-proof way to keep your text a static size is to use an image. Browsers these days even allow the user to change the size of text that is defined to have a certain pixel size...Sorry that I can't help much...Good luck!

Share this post


Link to post
Share on other sites

It's only IE that doesn't allow text size resizing if you use pixels. If it absolutely has to be a certain size (even though I can't think of any situation where that would have to be the case), then images is your only option.

Share this post


Link to post
Share on other sites

Even images won't help entirely, Opera has a zoom feature to enlarge everything on a page. If the text must be that small for layout then thats fine, the zoom won't affect it, but otherwise, you will still have problems.

Share this post


Link to post
Share on other sites

Even images won't help entirely, Opera has a zoom feature to enlarge everything on a page. If the text must be that small for layout then thats fine, the zoom won't affect it, but otherwise, you will still have problems.

Yeah but Opera scales the whole page as one. The reason given for needing to restrict a certain portion of the layout was cos it breaks something else. If an image was used, Opera would scale it relative to everything else and so would maintain the page's overall layout.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.