Ik ben bezig met een menu. En nu wil ik als hij active is (a:active) Dat hij het plaatje de bottom er van laat zien.
Maar het lukt niet echt, wie weet hoe ik dit dan wel kan doen?
Nu heb ik zoiets:
html:Css:
Maar het lukt niet echt, wie weet hoe ik dit dan wel kan doen?
Nu heb ik zoiets:
html:
Spoiler tonen
<li>
<a href="index" title="Homepage - VanMarijn" >
<img id="home" src="images/menu/home.png" alt="VanMarijn - home" /></a>
</li>
<li>
<a href="index" title="Portfolio - VanMarijn" id="port">
<img src="images/menu/port.png" alt="VanMarijn - Portfolio" /></a>
</li>
<li>
<a href="index" title="Contact - VanMarijn" id="contact">
<img src="images/menu/contact.png" alt="VanMarijn - contact" /></a>
</li>Spoiler tonen
#home:link {background:top no-repeat; width:78px; height:56px;}
#home:active {background:bottom no-repeat; width:78px; height:56px;}
#port:link {background:top no-repeat; width:78px; height:56px;}
#port:active {background:bottom no-repeat; width:78px; height:56px;}
#contact:link {background:top no-repeat; width:78px; height:56px; margin-left:4px;}
#contact:active {background:bottom no-repeat; width:78px; height:56px;}
gedeelten.
