anoniem Geplaatst: 14 juni 2004 Delen Geplaatst: 14 juni 2004 Ik heb nu bij mij nav dat als je over de regel gaat in de navigatie dat die dan grijs word (mouseover dus), maar de link werkt alleen als je er op klikt (nou ja, er zitten nu nog geen pages achter) Kan ik het ook zo maken dat het "hover gebied" ook al een link is? Quote Link naar reactie
anoniem Geplaatst: 14 juni 2004 Auteur Delen Geplaatst: 14 juni 2004 jep.. knoop er een onclick aanvast. Quote Link naar reactie
anoniem Geplaatst: 14 juni 2004 Auteur Delen Geplaatst: 14 juni 2004 Met CSS, "display: block;" en "width: 100%;". Zoiets, in ieder geval... :roll: - Bas Quote Link naar reactie
anoniem Geplaatst: 14 juni 2004 Auteur Delen Geplaatst: 14 juni 2004 hoe doe ik dat onclick pcies, ik heb nu: [code:1:4158c6ba9c]<tr> <TD onmouseover="this.style.backgroundColor = 'gray'" onmouseout="this.style.backgroundColor = ''"><A href="index.php?page=main">Home</A></TD> </TR>[/code:1:4158c6ba9c] Quote Link naar reactie
anoniem Geplaatst: 14 juni 2004 Auteur Delen Geplaatst: 14 juni 2004 hier een werkend voorbeeld: [code:1:cb492bab0b]<html><head> <style type="text/css"> .dummymo a { text-align: center;} .dummymo a { display: block; height:100%; width: 100%; background: #ccc;} .dummymo a:hover { display: block; height:100%; width: 100%; background: #0f0;} </style> </head> <body> <!-- zonder css <tr> <td onmouseover="this.style.backgroundColor = 'gray'" onmouseout="this.style.backgroundColor = ''"> <a href="index.php?page=main">Home</a> </td> </tr> --> <table border="1" width="200"> <tr> <!-- met css --> <td class="dummymo"> <a href="index.php?page=main">Home</a> </td> </tr> </table></body></html> [/code:1:cb492bab0b] CSS rules :D Quote Link naar reactie
anoniem Geplaatst: 15 juni 2004 Auteur Delen Geplaatst: 15 juni 2004 @wimB: Ff een vraagje: Waarom splits je in je css .dummymo a? Quote Link naar reactie
anoniem Geplaatst: 15 juni 2004 Auteur Delen Geplaatst: 15 juni 2004 [quote:55c4e580f6="bierk"]@wimB: Ff een vraagje: Waarom splits je in je css .dummymo a?[/quote:55c4e580f6] Die eerste moet zijn: .dummymo { text-align: center;} Zonder a dus. Goed dat er nog oplettende lezers zijn :D wimb Quote Link naar reactie
Aanbevolen berichten
Om een reactie te plaatsen, moet je eerst inloggen