Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to detect change of Text Size

 
reubin haz
Ranch Hand
Posts: 287
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there any way to detect the user has changed Text Size after a page is opened? What code would it be?
Thanks.
 
Niki Nono
Ranch Hand
Posts: 256
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what text size?
or which text size?
 
reubin haz
Ranch Hand
Posts: 287
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I mean the browser's text size.
You can see it from

on the top menu of the browser, click View, then Text Size is inside.
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not that I know of....

Eric
 
Niki Nono
Ranch Hand
Posts: 256
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes you do see it in IE. Never noticed it.
I think you need to play around with CSS to get the desired result.
Maybe have one style sheet with a particular font size and based on some event replace the current stylesheet with the one with the larger font size.
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you set a font size of px, you will not be affected. If you set a size of EM you will be affected by the change.

Eric
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic