Font Size in IE
On a website I created previously I had a css code which stopped users changing the display font size in Internet Explorer using the menu. I would like to implement this code in a new design but cant remember what I done. Anyone offer any help?
teammatt3 posted this at 21:03 — 27th October 2007.
He has: 2,102 posts
Joined: Sep 2003
If you set the font-size to something in pixels it will prevent IE6 users from adjusting it from the View > Text Size option. I don't know about IE7 though.
webwiz posted this at 05:16 — 28th October 2007.
He has: 629 posts
Joined: May 2007
Why would you want to do that? It seems pretty unfriendly to me.
Thankfully, it's not possible, in any browser. IE on Windows makes a visitor go through hoops to alter text size specified in pixels. But it can still be done. Sorry. (Not.)
Cordially, David
--
delete from internet where user_agent="MSIE" and version < 8;
JeevesBond posted this at 09:56 — 28th October 2007.
He has: 3,956 posts
Joined: Jun 2002
Realistically you can't stop users from changing the font size of your pages and stopping the one's who need to do this will just drive them away from your site. Teammatt3 is correct about IE6 though, you can stop the user from changing the text size using 'font-size' then specifying a value in pixels, e.g.
font-size: 16px;
'You'd have to test and see whether that works in IE7. Most browsers (I think IE7 included) are moving a to a page zoom model now, where the user can zoom-in on the page, rather than just increasing the text size. There's nothing you can do to stop the user doing that I'm afraid (nor should you try).
a Padded Cell our articles site!
sin0cide posted this at 20:29 — 28th October 2007.
He has: 17 posts
Joined: Oct 2007
I think the reason why he wants to do this is because his layout does not allow the resizing of words very well without messing up the layout and in reality it is easier to stop the resizing then adjust the layout to be flexible. It might take longer to convert your pages to a more flexible design but in the long run it will save you headaches like this from popping up in the future.
Brian(Webdesigner/SEO)
webwiz posted this at 20:45 — 29th October 2007.
He has: 629 posts
Joined: May 2007
JeevesBond: Try this:
In IE 6 or 7: Go to Tools > Internet Options from the menu. From the "General" tab, press the Accessibility button at bottom right. Put a check mark (tick) against the 'Ignore font sizes specified on Web pages' and press OK.
(I did say you'd have to go through hoops!)
Cordially, David
--
delete from internet where user_agent="MSIE" and version < 8;
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.