Hopsel: Frage zum Layout

Beitrag lesen

Hi Christoph!

hallo Hopsel,

Was spricht denn gegen ein overflow: auto; des Inhalt-Divs, während die anderen Divs ganz normal auf der Seite angeordnet werden?

Es scrollen dabei _alle_ mit. Aber bei "Micc" sollen aben auch drei DIVs stehenbleiben, und nur eines soll scrollen.

#div_oben {  
position: absolute;  
top: 0px;  
left: 0px;  
width: 100%;  
height: 200px;  
overflow: none;  
}  
  
#div_main {  
position: absolute;  
top: 0px;  
left: 0px;  
width: 100%;  
height: 100%;  
overflow: auto;  
}  
  
#div_unten {  
position: absolute;  
bottom: 0px;  
left: 0px;  
width: 100%;  
height: 200px;  
overflow: none;  
}

Natürlich ist das noch falsch, weil ich nicht weiß, ob das height: 100% hier richtig interpretiert wird. Aber mein Grundgedanke müsste trotzdem erkennen zu sein. Das müsste doch funktionieren oder?

|---------------------|

nicht scrollbar
scrollbar
---------------------
nicht scrollbar
---------------------

MfG Hopsel

--
"It's amazing I won. I was running against peace, prosperity, and incumbency."
George W. Bush speaking to Swedish Prime Minister unaware a live television camera was still rolling, June 14, 2001
Selfcode: ie:% fl:( br:> va:) ls:& fo:) rl:? n4:& ss:| de:] js:| ch:? sh:( mo:) zu:)