[thelist] JavaScript - View --> Text Size

Christian Heilmann codepo8 at gmail.com
Sun Apr 8 13:17:44 CDT 2007


> Yeah this might be pushing things, but can JavaScript be used to check
> browser text size, and if it is larger, largest, etc swap out a
> background image for a 'taller' one?  And yes I can see arguments why
> not to do this.  -Bob

Yes it can, you either create a DIV with 1x1em and monitor its size or
use an IFRAME and check the onresize event. We've put some
explanations on ALA:

http://www.alistapart.com/articles/fontresizing


-- 
Chris Heilmann
Book: http://www.beginningjavascript.com
Blog: http://www.wait-till-i.com
Writing: http://icant.co.uk/



More information about the thelist mailing list