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


--------------------
Projektowanie stron internetowych | Need For Speed NFS
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 9)
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 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


--------------------
Robie to co lubie, lubie to co Robie
Go to the top of the page
+Quote Post
arczi
post
Post #3





Grupa: Zarejestrowani
Postów: 66
Pomógł: 0
Dołączył: 17.10.2006
Skąd: Rzeszów

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


przykladowy link:
  1. <a href="http://adres.pl" class="gen_text_white">LINK</a>
Go to the top of the page
+Quote Post
maverickkk
post
Post #4





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

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


Działa twój link. Musiałeś popsuć w innym miejscu.


--------------------
Robie to co lubie, lubie to co Robie
Go to the top of the page
+Quote Post
hzl_91
post
Post #5





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

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


A to trzeba dawać class w linku? A w <span> nie działa?


--------------------
Projektowanie stron internetowych | Need For Speed NFS
Go to the top of the page
+Quote Post
arczi
post
Post #6





Grupa: Zarejestrowani
Postów: 66
Pomógł: 0
Dołączył: 17.10.2006
Skąd: Rzeszów

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


maverickkk to nie moj temat, ale okey smile.gif

sorry za oft
Go to the top of the page
+Quote Post
maverickkk
post
Post #7





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

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


a sorki arczi rozpędziłem się :]

hzl_91 pewnie że można dawać hover dla span tylko IE tego nie interpretuje angrysmiley.gif


--------------------
Robie to co lubie, lubie to co Robie
Go to the top of the page
+Quote Post
hzl_91
post
Post #8





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

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


z tego co widzę opera i ff też tongue.gif

Nie działa mi w <span> ;/ A potrzebuje żeby to właśnie w span było. Bo ja CMS 'a piszę i właśnie musi to być w span.


--------------------
Projektowanie stron internetowych | Need For Speed NFS
Go to the top of the page
+Quote Post
maverickkk
post
Post #9





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

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


pozostaje javascript onmouseover zmieniasz klase styli itd.

Ten post edytował maverickkk 31.12.2006, 19:51:57


--------------------
Robie to co lubie, lubie to co Robie
Go to the top of the page
+Quote Post
hzl_91
post
Post #10





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

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


tzn. jak? Halo jak te linki?

Ten post edytował hzl_91 1.01.2007, 14:21:09


--------------------
Projektowanie stron internetowych | Need For Speed NFS
Go to the top of the page
+Quote Post

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

 



RSS Aktualny czas: 21.08.2025 - 14:43