---
title: "Abstand zwischen h2 und p-Tag"
url: "https://www.typo3.net/d/6457-abstand-zwischen-h2-und-p-tag"
source: "typo3.net"
tags: ["Frontend","Styling","Frage","HTML & CSS"]
created: "2003-10-14"
last_reply: "2003-10-14"
replies: 1
solved: false
page: 1
pages: 1
lang: "de"
---

# Abstand zwischen h2 und p-Tag

Frontend › Styling · 1 Antwort · gestartet 2003-10-14

## Eröffnungsbeitrag

**cooper** · 2003-10-14 · [Beitrag #1](https://www.typo3.net/d/6457-abstand-zwischen-h2-und-p-tag/1)

Kurze Frage: Wie bekomme ich es hin den Abstand zwischen einer Überschrift (h2-Tag) und dem Paragraph-Tag <p> einzustellen?

Via CSS hab ich die beiden Tags bisher wie folgt eingestellt:

```css
h2 {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 11px;
	font-weight: bold;
	color: #03639C;
}

p{
	padding-right : 13px;
	text-align : left;
	vertical-align : top;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 11px;
	font-style: normal;
	font-weight: normal;
	color: #000000;
}
```

Das Ergebnis sieht ungefähr so aus:

**ÜBERSCHRIFT**

Lorem ipsum dolor sit amet ....

Es soll aber so aussehen:

**ÜBERSCHRIFT**
Lorem ipsum dolor sit amet ....

Im Quelltext sind keine Umbrüche oder clearpixel.gifs.

```html
<h2>ÜBERSCHRIFT</h2><P>Lorem ipsum dolor sit amet ....</p>
```

Kann mir jemand einen Tipp geben wie ich das gewünschte Ergebnis bekomme?

## Antworten

### [#2](https://www.typo3.net/d/6457-abstand-zwischen-h2-und-p-tag/2) · cooper · 2003-10-14

Alles klar, hat sich schon erledigt. So geht's:

> h2 {
>    **margin-bottom: 0px;**
>    font-family: Arial, Helvetica, sans-serif;
>    font-size: 11px;
>    font-weight: bold;
>    color: #03639C;
> }
>
> p{
>    **margin-top: 0px;**
>    padding-right : 13px;
>    text-align : left;
>    vertical-align : top;
>    font-family: Arial, Helvetica, sans-serif;
>    font-size: 11px;
>    font-style: normal;
>    font-weight: normal;
>    color: #000000;
> }

---

Quelle: „Abstand zwischen h2 und p-Tag“, typo3.net, https://www.typo3.net/d/6457-abstand-zwischen-h2-und-p-tag
Beiträge von Mitgliedern des Forums. Bitte mit Link auf die Diskussion zitieren.
