ChrisB: Margin will nicht so wie ich will

Beitrag lesen

Hi,

Er macht keinen Abstand zwischen dem roten und grünen (rot in grün bessergesagt) sondern setzt den Abstand anscheinend oberhalb des grünen DIVs.

Hat "er" brav gemacht -
Css 2.1, 8.3.1 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

--
„This is the author's opinion, not necessarily that of Starbucks.“