wood burning stoves*
The moose likes HTML, CSS and JavaScript and the fly likes How to Fill Page with Containers Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "How to Fill Page with Containers" Watch "How to Fill Page with Containers" New topic
Author

How to Fill Page with Containers

Steve Dyke
Ranch Hand

Joined: Nov 16, 2004
Posts: 1394
I am floating left two containers into my page.

The first containers height is set to auto and width 100%.
How do I set the second container height to fill the rest of the page(minus what the first container has used)?
If I set the second height to 100% of course I get a y-direction scroll bar. It I set it to auto it is not really appealing.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to Fill Page with Containers
 
Similar Threads
div 'overflow:auto;' css question...
servlet containers - in-process & out-of-process
Problem in setting footer when content extends page length
Positioning Links within a TH tag
Question about class and interface inheritance.