| Welcome to WebmasterWorld Guest from 18.104.22.168 |
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
|Pubcon Platinum Sponsor 2014|
|Dynamically Setting Div Height|
Want to fill client area exactly
I'm using a very popular Map homepage as an example of what I'd like to do.
The page is set so that the client area of the browser is filled up precisely. The map is contained in a div element, and the height property is set inline on the style attribute of the div.
Resizing the window results in the height property being reset to exactly fill to the bottom of the page, so that there is no need to display a scroll bar.
How can this be done, including before the page is first displayed?
Thanks in advance!
All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved