[ Date Index ][
Thread Index ]
[ <= Previous by date /
thread ]
[ Next by date /
thread => ]
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Sunday 28 Jul 2002 5:15 pm, Adrian Midgley wrote:
On Sunday 28 July 2002 16:10, you wrote:Lets concentrate on standardizing HTML and CSS, and then tackle javascript!OK. Today's problem for me is fixing a division to the bottom of a web page, or more precisely ensuring it is always below another element. I can do it with position:fixed; but then I find myself making assumptions about how large the viewport of the user is going to be, and putting it xxx pixels down the page. I'll probably find the answer through Google in a few minutes... but ...
Javascript can access the size of the viewable area through screen - whether it will do what you want is awkward to answer. Each browser gives a different answer and makes different assumptions about the 'viewable' area. The problem is that this is only implemented in Javascript1.2 - older browsers won't support it - at all. What you'll get in those browsers is impossible to say. screen.availHeight screen.height Be careful with the implementation and test the code in as many browsers as possible. - -- Neil Williams ========== www.codehelp.co.uk www.dclug.org.uk -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE9RC33k7DVr6iX/QIRArfSAJ4p1n/UsggyLfwa/NPcjEtY9Y+PAgCdGGQA G1D/uwJiUB3FtYzPtnTAneo= =Q6V+ -----END PGP SIGNATURE----- -- The Mailing List for the Devon & Cornwall LUG Mail majordomo@xxxxxxxxxxxx with "unsubscribe list" in the message body to unsubscribe.