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

div verlinken

Iquul

Neues Mitglied
hi ich möchte div verlinken.

ich hatte das auf meiner offlinepage geschafft, aber nun wo ich die seiten online habe, funktioniert es nicht.

was ist falsch?

HTML:
<DOCTYPE html PUBLIC frames.html>
<body bgcolor="black" background="">
<html>
<body>
<div style="position:absolute; top:-862px; left:-70px;">
<img style="margin:0px;" src="tv2.jpg">
</div>
</>
<a href="interviews.html" target="haupt" a>
<div style="position:absolute; top:32px; left:50px;"><img style="margin:0px;" border="0" src="http://www.lostscenes.de/bilder/chrombuttoninterviews.png"><a href="outtakes.html" target="haupt"a>
</div>
 

<div style="position:absolute; top:32px; left:185px;">
<img style="margin:0px;" border="0" src="http://www.lostscenes.de/bilder/chrombuttonouttakes.png" href="folgen.html" target="haupt" a></div>

<div style="position:absolute; top:32px; left:320px;">
<img style="margin:0px;" border="0" src="http://www.lostscenes.de/bilder/chrombuttonfolgen.png">
<a href="main.html" target="haupt"</a>
</div>
<div style="position:absolute; top:19px; left:970px;">
<img style="margin:0px;" border="0" src="http://www.lostscenes.de/bilder/einaus.png">
<a href="gbuch.html" target="haupt"/a>
</div>
 
<div style="position:absolute; top:85px; left:620px;">
<img style="margin:0px;" border="0" src="http://www.lostscenes.de/bilder/gaestebuchblue.png"><a href="index.html"a>
</div>
 

</body>  
</html>

falls es igwie hilft die seite ist lostscenes.de

Mod-Edit: Code-Tags hinzugefügt - Beim nächsten Mal bitte dran denken (XraYSoLo)
 
Zuletzt bearbeitet von einem Moderator:
Ich gehe mal davon aus, dass du eher die Bilder verlinken willst.
Statt
Code:
<div style="position:absolute; top:32px; left:320px;">
<img style="margin:0px;" border="0" src="http://www.lostscenes.de/bilder/chrombuttonfolgen.png">
<a href="main.html" target="haupt"</a>
</div>
müsste es so lauten:

Code:
<div style="position:absolute; top:32px; left:320px;">
<a href="main.html" target="haupt"><img style="margin:0px;" border="0" src="http://www.lostscenes.de/bilder/chrombuttonfolgen.png"></a>
</div>

Die absoluten Positionierungen sind nicht erforderlich und verursachen meist nur Probleme.
Ebenso ist es nicht nötig, für jeden Link einen Div zu verwenden.
Eleganter wäre das in Form einer ul-Liste.
 
Zurück
Oben