![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
|
I'd like to find a way to stack two divs vertically, where the top div is a fixed height and the bottom dynamic in order to fill the remaining page height. I know this can be done by using position:absolute and using hidden divs to pad things out, but there must be a cleaner approach to this problem out there |
#2
| |||
| |||
|
|
In article 19429c01-02f8-4c86-b5d3-79f31fc0e... (AT) f10g2000hsf (DOT) googlegroups.co m>, Lypheus <lyph... (AT) gmail (DOT) com> wrote: I'd like to find a way to stack two divs vertically, where the top div is a fixed height and the bottom dynamic in order to fill the remaining page height. I know this can be done by using position:absolute and using hidden divs to pad things out, but there must be a cleaner approach to this problem out there [snip code...] Can I interest you in a simple at http://members.optushome.com.au/droo...t/lypheus.html ? -- dorayme |
#3
| |||
| |||
|
|
, Lypheus <lypheus (AT) gmail (DOT) com> wrote: |
|
Visually thats great, but if you change the background of the div "body" to green, you'll see the div itself is not expanded to fill out the page height here. The reason I want it to do this is that i'll be using it as a clipping region for dragging "windows" within that div area. On Feb 12, 4:17 pm, dorayme <doraymeRidT... (AT) optusnet (DOT) com.au> wrote: In article 19429c01-02f8-4c86-b5d3-79f31fc0e... (AT) f10g2000hsf (DOT) googlegroups.co m>, Lypheus <lyph... (AT) gmail (DOT) com> wrote: I'd like to find a way to stack two divs vertically, where the top div is a fixed height and the bottom dynamic in order to fill the remaining page height. I know this can be done by using position:absolute and using hidden divs to pad things out, but there must be a cleaner approach to this problem out there [snip code...] Can I interest you in a simple at http://members.optushome.com.au/droo...t/lypheus.html |
![]() |
| Thread Tools | |
| Display Modes | |
| |