Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [css] Problem z kolorowaniem linków (hover itepe.)
hzl_91
post
Post #1





Grupa: Zarejestrowani
Postów: 70
Pomógł: 0
Dołączył: 28.03.2006
Skąd: Częstochowa

Ostrzeżenie: (10%)
X----


Siema po raz kolejny dziś ;]

Pisząc arkusz styli, napotkałem dziwny problem.

Otórz chcąc napisać coś takiego, chciałem, żeby link klasy gen_text_white po najechaniu myszką kolorował się na czarno, a ogólnie link tej klasy był czerwony. I oto mój kod CSS:
Cytat
.gen_text_white {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
color: #FFFFFF;
text-decoration: none;
}
a.gen_text_white { text-decoration: none; color : red; }
a.gen_text_white:hover { text-decoration: underline; color : #000000; }


I dlaczego mi to nie działa?

Ten post edytował hzl_91 31.12.2006, 16:26:48
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
maverickkk
post
Post #2





Grupa: Zarejestrowani
Postów: 181
Pomógł: 0
Dołączył: 12.11.2005

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


Kiedy mi to działa

nie zapomniałeś dodać chociaż href="#" w linku (IMG:http://forum.php.pl/style_emoticons/default/questionmark.gif)

najprostrzy kod

  1. .gen_text_white {
  2. font-family: Verdana, Arial, Helvetica, sans-serif;
  3. font-size: 10px;
  4. color: #FFFFFF;
  5. text-decoration: none;
  6. }
  7. a.gen_text_white { text-decoration: none; color : red; }
  8. a.gen_text_white:hover { text-decoration: underline; color : #000000; }
  9.  
  10. <a href="#" class="gen_text_white">asd</a>


Ten post edytował maverickkk 31.12.2006, 18:20:19
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: 13.10.2025 - 20:43