Hallo Lion.
Huhu, ich mach grad ne Seite und möhcte dass zwischen meinen Elementen und dem Body kein Platz is. Wenn ich das mit topmargin="0" im bodytag mach dann gehts ja aber wenn ich das via css mit body {margin: 0px;} mach gehts nich.
Natürlich, beim body-Element gibt es ja nicht nur margin, sondern auch padding. Zudem wird das body-Element noch vom html-Element umspannt, für welches du ebenfalls die entsprechenden Werte vorgeben solltest.
Einen schönen Samstag noch.
Gruß, Ashura
--
sh:( fo:} ch:? rl:( br: n4:~ ie:{ mo:| va:) de:> zu:} fl:( ss:) ls:[ js:|
„It is required that HTML be a common language between all platforms. This implies no device-specific markup, or anything which requires control over fonts or colors, for example. This is in keeping with the SGML ideal.“
[HTML Design Constraints: Logical Markup]
sh:( fo:} ch:? rl:( br: n4:~ ie:{ mo:| va:) de:> zu:} fl:( ss:) ls:[ js:|
„It is required that HTML be a common language between all platforms. This implies no device-specific markup, or anything which requires control over fonts or colors, for example. This is in keeping with the SGML ideal.“
[HTML Design Constraints: Logical Markup]