Okej, lste igenom artikeln, och frskte lsa det, men fr det inte att fungera. Det blir bara en bakgrundsbild, inget mer. Inga lnkar eller ngot.
r som sagt, rtt novis, men frsker lra mig.
Finns frmodligen 100 fel, s skratta inte ut mig fr mycket, men jag bifogar koden jag har skrivit, hoppas ni kan hjlpa mig lite.
CSS:
Citat:
#menu li {
list-style: none;
}
#menu li, #menu a {
display: block;
}
#home {left: 0; width: 176px;}
#service {left: 177px; width: 172px;}
#sails {left: 350px; width: 172px;}
#about {left: 524px; width: 172px;}
#contact {left: 697px; width: 172px;}
#home a:hover {background: transparent url(img/Home_Buttom.gif) 0 47px no-repeat;}
#service a:hover {background: transparent url(img/test.gif) -177 -47px no-repeat;}
#sails a:hover {background: transparent url(img/test.gif) -350 -47px no-repeat;}
#about a:hover {background: transparent url(img/test.gif) -524 -47px no-repeat;}
#contact a:hover {background: transparent url(img/test.gif) -697 -47px no-repeat;}
Och hr kommer HTML:
Citat:
<ul id="menu">
<li id="home"><a href="#1"></a></li>
<li id="service"><a href="#2"></a></li>
<li id="sails"><a href="#3"></a></li>
<li id="about"><a href="#4"></a></li>
<li id="contact"><a href="#4"></a></li>
</ul>
Menyn ska vara horisontel, s antar att det ska vara display: inline istllet fr block?
Tack fr all hjlp!