This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread for details.
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 Elasticsearch in Action this week in the Big Data 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

How to Fill Page with Containers

Steve Dyke
Ranch Hand

Joined: Nov 16, 2004
Posts: 1518
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.
I agree. Here's the link:
subject: How to Fill Page with Containers