This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes Use JavaScript to override minimum font setting in Opera? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Use JavaScript to override minimum font setting in Opera?" Watch "Use JavaScript to override minimum font setting in Opera?" New topic
Author

Use JavaScript to override minimum font setting in Opera?

marc weber
Sheriff

Joined: Aug 31, 2004
Posts: 11343

I have a JavaScript function that gradually decreases the text size in an element until it disappears. It does this by using setTimeout to recursively call itself, decreasing the element's style.fontSize until it reaches 0px. Then, to make sure it's vanished, I set display to none.

The issue is that Opera (unlike Safari, Firefox, and Chrome) appears to be enforcing its minimum font size during this process. So the text dwindles down to about 8px, and then stays there until the iterations finish and display is set to none.

So can I use JavaScript to override this setting in Opera, and then put it back when I'm done? (I'm guessing not, but...)


"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Use JavaScript to override minimum font setting in Opera?
 
Similar Threads
Enforcing Minimum Size in Frames
Programmatically determine actual font size, face, color, etc., being used?
Relative OR absolute font size?
Can't get jQuery to have effect
MenuItem font setting