• Jetzt anmelden. Es dauert nur 2 Minuten und ist kostenlos!

unerwünschter Zeilenumbruch

html001

Neues Mitglied
Hallo

Ich habe einen Quelltext in dem ich einen ganz normalen Text Geschrieben hab.
allerdings ist da ein zeilenumbruch wo keiner sein sollte.Es wird auch kein Fehler angezeigt.

Hier mein Htmlcode
Code:
<div id="oben1">
<p id="pos1"><a href="" target="iframe" id="link1">Impressum<a> | <a href="" target="iframe" id="link1">Kontakt</a></p>
</div>
und hier der csscode
Code:
  #link1{ font-family:Arial; font-size:8pt; }
 a:link { color:#AFAEAE; text-decoration:none; font-weight:bold; }
 a:visited { color:#AFAEAE; text-decoration:none; font-weight:bold; }
 a:focus { color:#AFAEAE; text-decoration:none; font-weight:bold; }
 a:hover { color:#AFAEAE; text-decoration:underline; font-weight:bold; }
 a:active { color:#AFAEAE; text-decoration:none; font-weight:bold; } 

#oben1{
position:absolute;top:0px;left:180px;
width:990px;
height:10px;
background: #003366;
}
Sieht dann so aus:
Impressum|
Kontakt

wäre nett wenn ihr euch das mal anschauen könntet.

Vielen Dank schon mal im Voraus

Html001
 
Als Erstes solltest du das erste a mal schließen, statt ein neues zu öffnen.
Vielleicht liegt´s auch schon daran, aber das ist eher unwahrscheinlich.

Du könntest es auch mal so versuchen:

HTML:
<p id="pos1"><nobr><a href="" target="iframe" id="link1">Impressum</a> | <a href="" target="iframe" id="link1">Kontakt</a></nobr></p>

Das ist das, was mir spontan einfällt ..
 
Also ich hab den Code gerade mal getestet und es funktioniert alles.

HTML:
<html><head>
<style type="text/css">
  #link1{ font-family:Arial; font-size:8pt; }
 a:link { color:#AFAEAE; text-decoration:none; font-weight:bold; }
 a:visited { color:#AFAEAE; text-decoration:none; font-weight:bold; }
 a:focus { color:#AFAEAE; text-decoration:none; font-weight:bold; }
 a:hover { color:#AFAEAE; text-decoration:underline; font-weight:bold; }
 a:active { color:#AFAEAE; text-decoration:none; font-weight:bold; } 

#oben1{
position:absolute;top:0px;left:180px;
width:990px;
height:10px;
background: #003366;
}

</style>

</head>
<body><div id="oben1">
<p id="pos1"><a href="" target="iframe" id="link1">Impressum</a> | <a href="" target="iframe" id="link1">Kontakt</a></p>
</div>
</body>
</html>
 
Habs jetzt gefunden .der text war zu nah am iframe und hat deshlab einen Zeilenumbruch gemacht.
sorry war wirklich blöd von mir.

Gruß html001
 
Zurück
Oben