Absatz in CSS Datei?
Christoph Losert
- css
0 Christian Seiler0 bo0 Tobias K.
Hi,
wie kann ich in einer CSS-Datei die Absatzgestaltung festlegen,
die ich sonst hier stehen hatte:
<body>
<p style="margin-top: 0; margin-bottom: 0">test</p>
</body>
danke!
Hallo,
<p style="margin-top: 0; margin-bottom: 0">test</p>
Vielleicht so?
p { margin-top: 0; margin-bottom: 0; }
Bitte lies noch mal das Kapitel zu CSS in SELFHTML.
Christian
<p style="margin-top: 0; margin-bottom: 0">test</p>
p {margin-top: 0; margin-bottom: 0}
oder besser:
p.alternativ {margin-top: 0; margin-bottom: 0}
dazu kommt aber das html-tag:
<p class="alternativ"> text </p>
Hallo Christoph,
<p style="margin-top: 0; margin-bottom: 0">test</p>
p { margin-top:0; margin-bottom:0; } oder
p.irgendwas { margin-top:0; margin-bottom:0; } (dann eben <p class="irgendwas">)
aber wo liegt jetzt genau das Problem?
Grüße aus Nürnberg
Tobias