Ron Adams wrote:
I have 2 divs on a page, and the top one is an unknown size, the bottom
one must fill the rest of the space to the bottom of the browser window.
How do I do this with CSS?
A simplyfied example below.
You can't. Divs expand to the height of their content (plus padding and
On 8/30/05, Bob Easton [EMAIL PROTECTED] wrote:
Ron Adams wrote:
I have 2 divs on a page, and the top one is an unknown size, the bottom
one must fill the rest of the space to the bottom of the browser window.
How do I do this with CSS?
A simplyfied example below.
You can't. Divs
This[1] is a real issue and one that should have been addressed by the
CSS spec. Setting a table to 100% high in IE in quirks mode makes the
table the height of the screen, a really useful feature. This isn't
available in standards mode, and there is *no* equivalent in a
tableless design.
No
No need for quirks mode, I don't think. Set html,body{height:100%} (as
well as your table) and you should be good to go in standards mode.
Hmmm why does html and body need a height? That is surely a hack.
I'll let others reply to the more specific height details of CSS, as I
can get
At 3:00 PM +0100 8/30/05, andrew welch wrote:
No need for quirks mode, I don't think. Set html,body{height:100%} (as
well as your table) and you should be good to go in standards mode.
Hmmm why does html and body need a height? That is surely a hack.
Or, you know... not.
Ok,
Ok, I'll throw it open to the CSS experts. Two divs:
divHeader/div
divlots of content/div
The requirement is that the header div must not scroll off the page,
it should remain fixed at the top of the page. The content div will
fill with content and should be scrollable vertically when
divHeader/div
divlots of content/div
The requirement is that the header div must not scroll off the page,
it should remain fixed at the top of the page. The content div will
fill with content and should be scrollable vertically when needed.
Anne van Kesteren post on fixed positioning with