greymaneMedlem sedan juli 2001711 inlägg hoverfunktionen i min css-fil funkar bara ibland... ngn som vet varför? den ser ut såhär:
a:link { font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-style: normal; color: #0000CC; text-decoration: none}
a:hover { font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-style: normal; color: #0000CC; text-decoration: underline}
a:active { font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-style: normal; color: #0000CC; text-decoration: none}
a:visited { font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-style: normal; color: #0000CC; text-decoration: none}
den funkar väldigt sällan. det blir alltså inget streck under texten (som det borde bli)
SicoMedlem sedan maj 20002 597 inlägg Det e inget som hellst fel på koden. Felet måste ligga nån annan stans.. Länkar css-filen på alla sidor?
------------------
Regler är till för att ändras, inte för att följas!
I wouldn't if I couldn't
MatteMedlem sedan aug. 20002 975 inlägg Lägg dom i följande ordning:
link
visited
hover
active
------------------
Fiskesällskapet Salamander
greymaneMedlem sedan juli 2001711 inlägg det va ordningen det va fel på. tack i mängder! :)
varför är ordingen så viktig?
Web-TorMedlem sedan nov. 200013 890 inlägg
Note that the A:hover must be placed after the A:link and A:visited
rules, since otherwise the cascading rules will hide the 'color' property of the A:hover
rule. Similarly, because A:active is placed after A:hover, the active
color (lime) will apply when the user both activates and hovers over
the A element.
http://www.w3.org/TR/REC-CSS2/selector.html#x33 :)
------------------
/Tor
www.tor.nu
yazMedlem sedan maj 20021 028 inlägg kunde inte ha sagt det bättre själv ;)