*
The moose likes HTML, CSS and JavaScript and the fly likes how to detect change of Text Size Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "how to detect change of Text Size" Watch "how to detect change of Text Size" New topic
Author

how to detect change of Text Size

reubin haz
Ranch Hand

Joined: May 12, 2005
Posts: 287
Is there any way to detect the user has changed Text Size after a page is opened? What code would it be?
Thanks.


SCJA, SCJP5.0, SCBCD, SCWCD
Niki Nono
Ranch Hand

Joined: Mar 20, 2005
Posts: 256
what text size?
or which text size?


Life called,so here I am.<br />Cheers<br />Niki.:-)
reubin haz
Ranch Hand

Joined: May 12, 2005
Posts: 287
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

Joined: Nov 08, 2001
Posts: 15376
    
    6
Not that I know of....

Eric
Niki Nono
Ranch Hand

Joined: Mar 20, 2005
Posts: 256
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

Joined: Nov 08, 2001
Posts: 15376
    
    6
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to detect change of Text Size
 
Similar Threads
display area problem
Resizing in JSplitPane
validation on server side
how to access browser refresh button
How To Change Label Text Size??