Hallo,
ich beschäftige mich erstmals mit CSS und habe deswegen nicht so viel Ahnung, wie alles geht.
Ich habe einen Banner als Bild mit der Höhe von 36px.
Zwei Buttons sollen genau auf dem Banner liegen, was sie momentan noch nicht tun, da sie ein paar Pixel darüber liegen.
Wo liegt der Fehler, ihr könnt mir sicher helfen.
Die Rahmenlinien habe ich nur für mich zum Erkennen hingemacht.
Gruß
ich beschäftige mich erstmals mit CSS und habe deswegen nicht so viel Ahnung, wie alles geht.
Ich habe einen Banner als Bild mit der Höhe von 36px.
Zwei Buttons sollen genau auf dem Banner liegen, was sie momentan noch nicht tun, da sie ein paar Pixel darüber liegen.
Wo liegt der Fehler, ihr könnt mir sicher helfen.
PHP-Code:
<style type="text/css">
a.button {
font-family:Lucida Bright;
font-size:14px;
font-weight: 500;
color: #E27100;
background-color: #7C7C7C;
border-left: 0px solid #CCCCCC;
border-top: 2px solid #7C7C7C;
border-right: 2px solid #7C7C7C;
border-bottom: 0px solid #606060;
text-decoration: none;
padding: 9px;
text-align: center;
}
a.button:hover {
color: #000000;
background-color: #FF954F;
border-left: 2px solid #3F3F3F;
border-top: 2px solid #3F3F3F;
border-right: 0px solid #cccccc;
border-bottom: 0px solid #606060;
text-decoration: none;
}
.headbanner {
background:url(layout/headbanner.png);
border:2px solid #000000;
background-repeat:no-repeat;
height:100%;
}
</style>
<br />
<div class="headbanner">
<center>
<div style="border:2px solid red; margin-top:0px; margin-bottom:0px; padding-top:0px;">
<a href="#" class="button">Bilder</a>
<a href="#" class="button">Kontakt</a>
<a href="#" class="button">Links</a>
</center>
</div>
</div>
Gruß

Kommentar