set css of body tag height = 100% or some fix like 860px..
and now do height of div to 100%
in order to use 100% your control's parent must have some height..
Main Topics
Browse All TopicsI have a left hand menu (div) and a content (div)
I want to scale the side menu div to the size of the screen (window) and the same goes for the content (div)
also when the window is resized, both div's (side menu and content) should resize accordingly.
the left hand menu is a user control.
how do I do it?
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
This CSS and HTML shows a very basic idea of how to set up something on the left (eg. a menu), and something on the right (eg. main content).
The CSS ensures that everything is contained in the main container. Using percentages for this type of thing is handy because the percentages are calculated based on the parent container... So if your main container is 600px and you have something contained in there that's 10% wide, it'll translate to 60px. If that 600px wide container changes to 300px, then the 10% wide thing becomes 30px.
If you were to use absolute "px" values, then you end up with things that can be unpredictable depending on how you declare your doctype, which browser you use, and the remainder of your code. Also, the absolute px values will prevent things from re-adjusting the way you want them to.
Check the code out in this sample HTML file - it demonstrates how the %'s work for both height and width - using different values for everything to try to give as good an idea as possible.
http://funtasticbids.com/e
For the fixed widths, use a px value (instead of % values).
PX defines the number of pixels that an element will be - 300px means 300 pixels wide. I've put the same CSS below, but just changed the widths to have "px" at the end. You'll need to figure out for yourself what the numbers will be - that'll depend entirely on the site you're designing, and the resolutions you're designing it for.
Business Accounts
Answer for Membership
by: ZylochPosted on 2009-06-17 at 23:45:04ID: 24654963
Set its CSS style to have
height: 100%;
Does that do the trick?