login  Naam:   Wachtwoord: 
Registreer je!
 Forum

LI attribute een volle link van maken (Opgelost)

Offline DarkImpact - 09/03/2008 14:17 (laatste wijziging 09/03/2008 14:58)
Avatar van DarkImpactNieuw lid ik wil graag 4 vakjes zonder text als een link hebben dus dat je een rood vakje hebt en je klikt erop dat je dan doorgestuurd word img is geen optie
html:

  1. <div id="style">
  2. <ul>
  3. <a href="/index.php?style=red"><li id="style1"></a>
  4. <a href="/index.php?style=blue"><li id="style2"></a>
  5. <a href="/index.php?style=green"><li id="style3"></a>
  6. <a href="/index.php?style=orange"><li id="style4"></a>
  7. </ul>
  8. </div>


css:
  1. #style { position: absolute; right: 10px; top: 4px; }
  2. #style #style1 { background-color: red; border: 1px solid gray; display: block; float: right; height: 20px; line-height: 20px; margin: 3px; width: 20px; }
  3. #style #style2 { background-color: blue; border: 1px solid gray; display: block; float: right; height: 20px; line-height: 20px; margin: 3px; width: 20px; }
  4. #style #style3 { background-color: green; border: 1px solid gray; display: block; float: right; height: 20px; line-height: 20px; margin: 3px; width: 20px; }
  5. #style #style4 { background-color: orange; border: 1px solid gray; display: block; float: right; height: 20px; line-height: 20px; margin: 3px; width: 20px; }
  6. #style #style1:hover { background-color: green; }
  7. #style #style2:hover { background-color: green; }
  8. #style #style3:hover { background-color: green; }
  9. #style #style4:hover { background-color: green; }
  10. #style ul { margin: 0; }

1 antwoord

Gesponsorde links
Offline DarkImpact - 09/03/2008 15:04
Avatar van DarkImpact Nieuw lid Bedankt en de link deed het gewoon niet. Want je kon er niet op klikken
Gesponsorde links
Dit onderwerp is gesloten.
Actieve forumberichten
© 2002-2024 Sitemasters.be - Regels - Laadtijd: 0.313s