faqts : Computers : Programming : Languages : JavaScript : DHTML

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

16 of 19 people (84%) answered Yes
Recently 8 of 10 people (80%) answered Yes

Entry

How can I dynamically scale text in relation to window size?

Mar 5th, 2000 17:45
Hiroto Sekine, Martin Honnen, Justin Stach, https://buttons.ihug.co.nz/all/profile.htm


With IE4.x and avobe, the following dynamic property works to modify 
the font size dynamically according to the winsow size. The code must 
be implemented as inline code. If you implement in a STYLE BLOCK it 
does not work. You may meet actual sample page at above URL.
<h1 style="font-family:Times New Roman; font-size:expression
(document.body.clientWidth/26);">Welcome 
to New Agent Registration</h1>