Frank Riethammer: 1 DIV Block mit 3 Blöcken darin + fortlaufend

Beitrag lesen

Hallo,

ich habe 3 DIVS nebeneinander, das DIV in der Mitte soll von der Höhe flexibel sein, darunter folgen wieder 3 DIVs usw...

http://img291.imageshack.us/img291/2244/kastengv6.png

Ich hatte mir das etwa so vorgestellt:

<div style="position:relative;height:auto">

<div style="position:absolute;left:0px;top:0px;height:100px;width:100px;height:100px">DIV1</div>

<div style="position:absolute;left:100px;top:15px;width:500px;height:auto">
<div style="position:relative;height:15px">Header</div>
<div style="position:relative;height:auto">Content</div>
<div style="position:relative;height:15px">Footer</div>
</div>

<div style="position:absolute;left:600px;top:0px;height:100px;width:100px">DIV3</div>

</div>

Wenn man jetzt das gleiche nochmal untereinander setzt, dann erscheinen aber die weiteren Blöcke nicht mehr... anscheinend werden die alle auf der selben Position plaziert?!

ich hatte mir halt gedacht alle 3 DIVs in einem relaten DIV absolut zu positionieren...