SiteExperts.com Logo Home | Community | Developer's Paradise
User Groups | Site Tools | Site Information | Search
 Main Menu
 Forums
SiteExperts.com Forums
All Discussions

SiteExperts Feedback
The Lounge
Dynamic HTML
Site Design/ Critiques
HTML and CSS
XML Technologies
The Wireless Internet
Internet Explorer
Microsoft .NET
The Server
Technical Support

Sponsored Links

User Groups : Forums : SiteExperts : Dynamic HTML :

Previous DiscussionNext Discussion
 event for font-size change?
is there an event that fires (as opposed to a hack) that fires when the user uses ctrl-mousewheel or font-size menu to change the font size?

Started By frumbert on Dec 13, 2006 at 3:27:59 PM

14 Response(s) | Reply

View All Replies | Goto Page: 2 1
ctcrmcou on Dec 13, 2006 at 6:01:35 PM

That's why I set fonts in px - they won't change. pt will.

I would guess, basically you need to setInterval() and test for a font-size change of a certain element's text, like a hidden div. Onload you need to read the initial font-size, then you track when a change is made, and call a function that will take the actions you need.

I have not experimented with this, so I don't know if it's simple enough to retrieve a px or point size, or if you have to get real messy and track the container's height as the font size changes.

hacks, sure why not. Events? only the ones you make.

found this font resizing article


View All Replies | Goto Page: 2 1

To respond to a discussion, you must first logon.

If you are not registered, please register yourself to become a member of the SiteExperts.community.

User Name
Password
Copyright 1997-2000 InsideDHTML.com, LLC. All rights reserved.