Problemer med CSS
Hej. Prøver at lave en a:hover der er delt op i 3 baggrundsbilleder, dvs.Venstre side af linket = skygge
Midten/ der hvor der er tekst = hvid
Højre = skygge..
men kan sgu ikke finde ud af det , har prøvet med span inde i linket..
#menu a:hover{
text-decoration: none;
color: #878787;
background-image: url(centeronmenu.gif);
background-position:top center;
display: inline-block;
width: auto;
line-height: 36px;
font-family: Tunga;
font-size: 18px;
z-index:0px;
padding: 0px;
border: 0px;
}
#menu a:hover span{
background-image: url(leftonmenu.gif);
background-position:top left;
background-repeat: no-repeat;
text-decoration: none;
color: #878787;
display: inline-block;
width: auto;
line-height: 36px;
font-family: Tunga;
font-size: 18px;
z-index:1px;
border: 0px;
}
#menu a:hover span span{
background-image: url(rightonmenu.gif);
background-position:top left;
background-repeat: no-repeat;
text-decoration: none;
color: #878787;
display: inline-block;
width: auto;
line-height: 36px;
font-family: Tunga;
font-size: 18px;
z-index:1px;
border: 0px;
}
html
<a href="#"><span></span>Lejligheden<span></span></a>
Kan ses på www.kerteminde-ferielejlighed.dk/john
