Hi,
Nun wird jedoch der contentcontainer erst ab der Stelle des inneren Test-Divs angezeigt (Also 50px unter dem menucontainer). Eigentlich sollte doch der contentcontainer unabhängig von seinem Inhalt direkt unter dem menucontainer starten, oder täusche ich mich da?
Das seltsame ist: Sobald ich dem contentcontainer einen border gebe oder einen Text ohne div hineinschreibe, fängt er an der richtigen Stelle an.
Wo liegt hier das Problem und wie kann ich es verhindern?
http://www.w3.org/TR/CSS21/box.html#collapsing-margins:
"The top margin of an in-flow block-level element is adjoining to its first in-flow block-level child's top margin if the element has no top border, no top padding, and the child has no clearance."
MfG ChrisB
--
“Whoever best describes the problem is the person most likely to solve the problem.” [Dan Roam]
“Whoever best describes the problem is the person most likely to solve the problem.” [Dan Roam]