Hi Mudguard!
Das hängt auch davon ab, woher diese margins kommen.
Handelt es sich um margin-bottom und margin-top von geschwistern, ist der margin zwischen den Elementen.
Handelt es sich um zweimal margin-top von Papa- und Kind-Element, wird der Margin außerhalb des Papas angelegt - siehe auch https://forum.selfhtml.org/?t=97419&m=592917 und die Antworten dazu.
Vielen Dank für die ausführliche Erklärung! Wieder ein Beispiel, dass ich noch viel lernen muss ;-)
Den anderen Thread werde ich mir mal ausgiebig zu Gemüte führen.
Grüße,
Fabian St.
--
Meine Website: http://fabis-site.net
--> XHTML, CSS, PHP-Formmailer, Linux
---------------------
fabi@erde ~# whatis spam
spam: nothing appropriate
---------------------
Selfcode: ie:% fl:| br:^ va:) ls:& fo:) rl:( n4:° ss:| de:> js:| ch:| mo:) zu:)
Meine Website: http://fabis-site.net
--> XHTML, CSS, PHP-Formmailer, Linux
---------------------
fabi@erde ~# whatis spam
spam: nothing appropriate
---------------------
Selfcode: ie:% fl:| br:^ va:) ls:& fo:) rl:( n4:° ss:| de:> js:| ch:| mo:) zu:)