|
 |
asp_web_howto thread: Auto sizing graphics/pages/Nav bars to window size.
Message #1 by "Neil Aubrey" <naubrey@i...> on Thu, 7 Dec 2000 00:56:59 -0000
|
|
Many of the professional pages have the ability to auto size the page
components to the size of the window. i.e. It must determin how wide the
client window is an adjust. As you drag the window inward the page content
moves inwards. As you drag the window outward the page content moves
outwards.
HOW DO?
Is this ASP?
Neil Aubrey
Message #2 by "Harsh Nandu" <harsh_stgil@h...> on Thu, 07 Dec 2000 07:35:48 -0000
|
|
Hi,
It is javascript.
Window resize events are handled to do the required.
Design of the page is done accordingly too.
Use of percentage values instead of eact pixel values etc.
And content to be put relatively.
Regds,
Harsh
>From: "Neil Aubrey" <naubrey@i...>
>Reply-To: "ASP Web HowTo" <asp_web_howto@p...>
>To: "ASP Web HowTo" <asp_web_howto@p...>
>Subject: [asp_web_howto] Auto sizing graphics/pages/Nav bars to window
>size.
>Date: Thu, 7 Dec 2000 00:56:59 -0000
>
>Many of the professional pages have the ability to auto size the page
>components to the size of the window. i.e. It must determin how wide the
>client window is an adjust. As you drag the window inward the page content
>moves inwards. As you drag the window outward the page content moves
>outwards.
>HOW DO?
>Is this ASP?
>Neil Aubrey
>
Message #3 by "Alex Shiell, ITS, EC, SE" <alex.shiell@s...> on Thu, 7 Dec 2000 10:12:24 -0000
|
|
this could be acheived by putting everything in a table and setting width to
100%... but if you want to be more clever about it the actual window size
(regardless of resoilution) can be got through these properties:
document.body.clientWidth
document.body.clientHeight
I think this may only work in IE however
-----Original Message-----
From: Neil Aubrey [mailto:naubrey@i...]
Sent: Thursday, December 07, 2000 12:57 AM
To: ASP Web HowTo
Subject: [asp_web_howto] Auto sizing graphics/pages/Nav bars to window
size.
Many of the professional pages have the ability to auto size the page
components to the size of the window. i.e. It must determin how wide the
client window is an adjust. As you drag the window inward the page content
moves inwards. As you drag the window outward the page content moves
outwards.
HOW DO?
Is this ASP?
Neil Aubrey
Scottish Enterprise Network
http://www.scottish-enterprise.com
|
|
 |