Seite 1 von 1

h1 und css ???

Verfasst: 17.02.2004, 12:56
von bobo
Hi Forum,

immer wenn ich einen h1 tag bei mir in die Seite einbau entsteht danach quasi eine Leerzeile; ich hab keine Ahnung warum.

Im Head Bereich steht bei mir folgendes:

<style>
H1 {
font-size : 12px;
font-stretch : normal;
font-weight : normal;
}
H2 {
font-size : 10px;
font-stretch : normal;
font-weight : normal;
}
</style>
<STYLE type="text/css">
<!--

A:link, A:visited { text-decoration: none; }
A:hover { text-decoration: none; color: red; }

-->
</STYLE>

Freue mich über Hilfe

grüße Bobo

Verfasst:
von
SEO Consulting bei ABAKUS Internet Marketing
Erfahrung seit 2002
  • persönliche Betreuung
  • individuelle Beratung
  • kompetente Umsetzung

Jetzt anfragen: 0511 / 300325-0.


Verfasst: 17.02.2004, 13:21
von Jörg
versuchs mal mit margin-bottom:0 und/oder padding-bottom:0

Verfasst: 17.02.2004, 13:36
von bobo
...und an welcher Stelle muss ich das genau einfügen?

Grüße Bobo

Verfasst: 17.02.2004, 13:37
von Webby
Beispiel...

Code: Alles auswählen

H1 &#123;
	font-size&#58; 14pt;
	margin-top&#58; 0pt;
	margin-bottom&#58; 0pt;
	color&#58; #FFFBF0;
&#125;

Verfasst: 17.02.2004, 13:54
von Jörg
jo, genau wie in webbys beispiel jeweils in einer eigenen zeile und mit semikolon abgeschlossen

H1 {
font-size : 12px;
font-stretch : normal;
font-weight : normal;
margin-bottom : 0;
}

Verfasst: 17.02.2004, 14:13
von bobo
Super,

probiere es gleich aus.

@Webby & Jörg

Vielen Dank für die schnelle Hilfe

Grüße Bobo