Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> dziwna sprawa z linkami
Czyzak
post
Post #1





Grupa: Zarejestrowani
Postów: 12
Pomógł: 0
Dołączył: 21.12.2003

Ostrzeżenie: (0%)
-----


mam sobie takiego css'a:

a:link {

color: #ff0000;

text-decoration: none;

}

a:hover {

color: #ffffff;

text-decoration: none;

}

a:visited {

color: #ff0000;

text-decoration: none;

}

i mam dziwny problem bo jak link był już odwiedzany, czyli visited to jak sie na niego najedzie to nie zmienia barwy!! co może być źle (IMG:http://forum.php.pl/style_emoticons/default/questionmark.gif)
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
quiris
post
Post #2





Grupa: Zarejestrowani
Postów: 13
Pomógł: 0
Dołączył: 30.12.2003

Ostrzeżenie: (0%)
-----


Cytat(Czyzak @ 2004-07-21 20:03:18)
mam dziwny problem bo jak link był już odwiedzany, czyli visited to jak sie na niego najedzie to nie zmienia barwy!! co może być źle (IMG:http://forum.php.pl/style_emoticons/default/questionmark.gif)

http://www.w3.org/TR/CSS21/selector.html#link-pseudo-classes :
Cytat
a:link    { color: red }    /* unvisited links */
a:visited { color: blue }  /* visited links  */
a:hover  { color: yellow } /* user hovers    */
a:active  { color: lime }  /* active links    */

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.


Kolejność definiowania jest krytyczna. Musimy zapamiętać sobie LVHA: http://www.seo-guy.com/seo-glossary/seo-l.html
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 27.12.2025 - 19:10