LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[Webdev] Sizing content automatically

[Webdev] Sizing content automatically

Philip Reynolds phil at redbrick.dcu.ie
Tue Sep 26 09:38:32 IST 2000


Niall O Broin's [niall at magicgoeshere.com] 22 lines of dribble included:
:>Hi,
:>   I use the javascript window properties innerWidth and innerHeight to
:>determine how much content to show to a user. This works with Navigator 4
:>but not with IE 4. There, I use screen.availWidth and screen.availHeight but
:>that's not a great solution for someone who doesn't have their browser
:>window maximised.
:>
:>It's like a dream to me that I saw mentioned somewhere that this can be done
:>in IE5, although not quite as simply. Do any of you know if this is the case
:>or not ? If so, how do I do it ?

IE4 way is, 

doc_width = document.body.clientWidth;
doc_height = document.body.clientHeight;
Phil.




More information about the Webdev mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell