Disabling text resize?

  • Tdotwire
  • Proficient
  • Proficient
  • User avatar
  • Posts: 486
  • Loc: Toronto

Post 3+ Months Ago

How do you make it so that users cannot change the size of the text on the page.

You can change the text by pressing cntr + the scroll wheel on the mouse, but I want to make it so that they cannot change the size.

How do you do that?
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • rtm223
  • Mastermind
  • Mastermind
  • User avatar
  • Posts: 1855
  • Loc: Uk

Post 3+ Months Ago

Firstly, let me tell you tha you can only do this on IE, anyone with a proper browser will <b>always</b> be able to text zoom. It's plain foolish to try and control something that cannot be controlled ;)

Secondly, it's really bad accesibility and usabilty to disable text zoom. It defies Priority Two WAI guidelines, and so if your country has accessibility laws (if it hasn't, it probably will soon), you'll be buggered.

Thirdly, I assume you don't want to allow text zoom to stop you layout breaking, which is the cop-out solution. The <b>better</b> solution is to make a layout that works with text zoom and doesn't break, because you can't stop 20% (ish) of your audience anyway.

All that said, use could use pixcel font sizes, but in case you hadn't guessed, I don't think it's a good idea:
Code: [ Select ]
font-size:12px;
  • Mas Sehguh
  • Mastermind
  • Mastermind
  • User avatar
  • Posts: 1853

Post 3+ Months Ago

Matias wrote:
How do you make it so that users cannot change the size of the text on the page.

You can change the text by pressing cntr + the scroll wheel on the mouse, but I want to make it so that they cannot change the size.

How do you do that?


First, you need to protect yourself from the Devil with this incantation, which you must repeat out loud seven times:

May the users ofth world
With poor eyesight and grainy vision,
So that I may have the illusion of control,
Let their eyes be fixed when viewing my site!
Let their eyes be fixed whilst reading my text!
Let their eyes be fixed before they look at my tiny navigation menus!

May the users ofth world
Adapt for my site
Instead of the other way around.
Let them not suffer so due to my incompetence!
Let them not leave in disgust when my site breaks their browser's features!
Let them love and adore my preferred font size,
Rather than their own.

It is imperative that you speak this incantation; only then will you be prepared for the consequences of what you desire.



[edit: couple of technical errors]
  • rtm223
  • Mastermind
  • Mastermind
  • User avatar
  • Posts: 1855
  • Loc: Uk

Post 3+ Months Ago

:D
  • gsv2com
  • Professor
  • Professor
  • User avatar
  • Posts: 776
  • Loc: Nippon

Post 3+ Months Ago

That's awesome, Sam. Where'd you find that?! Which websites have you built? Interested in hearing more of what you have to say on these forums.
  • Mas Sehguh
  • Mastermind
  • Mastermind
  • User avatar
  • Posts: 1853

Post 3+ Months Ago

I didn't find that; I just wrote it off the top of my head for the reply.
  • gsv2com
  • Professor
  • Professor
  • User avatar
  • Posts: 776
  • Loc: Nippon

Post 3+ Months Ago

Very nice. Well done! *applause*

Post Information

  • Total Posts in this topic: 7 posts
  • Users browsing this forum: No registered users and 52 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.