Connecting Tech Pros Worldwide Help | Site Map

Get info about font size in IE?

 
LinkBack Thread Tools Search this Thread
  #1  
Old July 20th, 2005, 11:23 AM
Anders Høgsbro Madsen
Guest
 
Posts: n/a
Default Get info about font size in IE?

Is there any way I can find the font size (1..7) that the user has chosen in
his IE browser (View menu, Text Size).

I would like to compensate for IE's missing max-width with code like this:
<style>
p.nicelength {
/* for browsers that implements max-width: */
max-width:30em;
/* for IE: */
width:expression(
USERS-CHOICE-OF-TEXT-SIZE > "3" ?
"auto":
"30em" );
}
</style>

Here USERS-CHOICE-OF-TEXT-SIZE must be replaced with an expression returning
the users selected text zize.

If you can give me that expression or an other way to achieve the same, I
will publish the total solution and mention your name.

If you can tell me a more appropriate news group where I can post the
question I will also be happy.

(don't refer me to
http://www.svendtofte.com/code/max_width_in_ie/
I have been inspired by Svends algorithm, whisc is more ambitious than mine,
but unfortunately not solid enough - e.g. does not take in account different
DPI settings.)

Thank you for your time
Anders Høgsbro Madsen



 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.