HTML/CSS Frage zu CSS

MisterSimpson

Simpsons Fan
ID: 50883
L
20 April 2006
2.947
106
Hi,

die Experten von euch werden sich wahrscheinlich totlachen, aber ich bekomme es nicht hin.

Habe hier folgendes in der style.css

Code:
.fz {
A:link {text-decoration: none}
A:visited {text-decoration: none}
A:active {text-decoration: none}
A:hover {text-decoration: none}
}[/CODE]

Und dann habe ich:

HTML:
<div class="fz" style="top:95px; left:900px; height:50px; width:210px;position:absolute">
<a class="fz" href="https://www.fantasticzero.com/comics/index.html" target="_blank">
<img  src="fz.png"  alt="Partner von Fantastic Zero" title="Partner von Fantastic Zero" border="0" />
</a> 
</div>

Das übernimmt er aber nicht. Möchte den blauen Balken da nicht haben. Zu sehen oben rechts auf www.simpsonsparadies.de

Zusatzfrage: Wie bekomme ich das Logo schön neben den Header? Von Bildschirmauflösung zu Bildschirmauflösung sieht dieses anders aus.
 
Habe es jetzt so:

#fz {position: absolute; text-align: center;
left: 402px; top: 48px;
A:hover
font-size: 11px; color: #000000; text-decoration: none; border:0px solid #000000; background-color:none;}

HTML:
<div id="fz">
<a id="fz" href="https://www.fantasticzero.com/comics/index.html" target="_blank">
<img  src="fz.png"  alt="Partner von Fantastic Zero" title="Partner von Fantastic Zero" border="0" />
</a> 
</div>
Ne andere Farbe geht, aber ich will ja gar keiner. Nur wie?
 
Ich seh irgendwie keinen blauen Balken.

Die positionierung deines Logos würde ich mit "position: absolute" und Verwandten probieren
 
So das Problem habe ich auch behoben.

Sieht jetzt wie folgt aus:

#fz {position: absolute;
left: 505px; top: 49px;
A:hover {
text-decoration: none;
background-color:none;
border:0px
}
}

HTML:
<div>
<a id="fz" href="https://www.fantasticzero.com/comics/index.html" target="_blank">
<img id="fz" src="fz.png"  alt="Partner von Fantastic Zero" title="Partner von Fantastic Zero" border="0" /></a> 
</div>

Nur ist das mit der Positionierung doof wegen der Bildschirmauflösung. Wie würdet ihr das lösen?
 
#fz {position: absolute;
left: 505px; top: 49px;
A:hover {
text-decoration: none;
background-color:none;
border:0px
}
}
Die Klammerung ist einfach nicht richtig. Wenn dann so:
HTML:
#fz { position : absolute;
left : 505px; top : 49px;
}
a#fz:hover {
  text-decoration: none;
  background-color:none;
  border:0px
}
 
Zuletzt bearbeitet: