Your plan is doomed to fail because the visitor can resize the text anyway,
via View, Text Size. And while this doesn't affect text you size in px, in,
dm, mm, pt, or pc in IE, the corresponding command *does* resize those
measurements in Netscape, Forefox, and other browers.
The options under Tools, Internet Options, Accessability throw another
monkey wrench into your plans.
Jim Buyens
Microsoft MVP
http://www.interlacken.com
Author of:
o--> Microsoft Visual Web Developer 2005 Express Edition: Build a Web Site
Now!
o--> Microsoft Office FrontPage 2003 Inside Out
o--> Microsoft Windows SharePoint Services Inside Out
o--> Faster Smarter Beginning Programming
"Xero" wrote:
> i am asking because i want to adjust the size of the text on my site
> according to the width of the browser window.
>
> thanks!
>
> --
> Xero
>
> http://www.chezjeff.net
> My personal web portal
>
>
> "Jim Buyens" wrote:
>
> > document.body.clientWidth
> >
> > Why do you ask?
> >
> > Jim Buyens
> > Microsoft MVP
> > http://www.interlacken.com
> > Author of:
> > o--> Microsoft Visual Web Developer 2005 Express Edition: Build a Web Site
> > Now!
> > o--> Microsoft Office FrontPage 2003 Inside Out
> > o--> Microsoft Windows SharePoint Services Inside Out
> > o--> Faster Smarter Beginning Programming
> >
> >
> > "Xero" wrote:
> >
> > > hello.
> > >
> > > how do you detect the width of the browser window with javascript?
> > > thanks.
> > > --
> > > Xero
> > >
> > > http://www.chezjeff.net
> > > My personal web portal