![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Seems simple enough yet I can't seem to accomplish it in CSS. I want a header area in where the height can vary.. Below that I want an area that fills the remaining area. |
#3
| |||
| |||
|
|
div.header { height: 10%; } div.body { height: 80%; } |
#4
| |||
| |||
|
#5
| |||
| |||
|
|
almost, but not quite.. that assumes I know the "header" area is X% high I don't know the header's content's height In this current problem this header area displays the levels of navigation in a level1 level2 .... type format I don't know how many lines will be there, what each lines line-height will be, etc... |
#6
| |||
| |||
|
|
div.header { height: 10%; } div.body { height: 80%; } really only needs to be: .contentArea { height: 80% } You can just use a header tag for a header and let the browser handle any resizing of the box there. |
#7
| |||
| |||
|
#8
| |||
| |||
|
|
the problem is that I'd like to have an object/embed/iframe or any number of things in the "body" occupy height=100% or simply have a border around the "body".. could have a column layout in the body that needs background color/image to extend to bottom... DIV style="position:absolute; height:400px; width:400px;" DIV "header" we don't know how high could be /DIV DIV "body" this should take up remaining space DIV style="position:absolute; bottom:0px;" want at bottom of the 400px square yes, I know this could/should go inside the outter div.. just trying to illustrate /DIV /DIV /DIV |
#9
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |