Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [CSS]Dziwny problem z css, Nie działa a:hoover
--Marcin--
post 24.04.2011, 00:43:02
Post #1





Goście







Witam,
Mój kod html wygląda tak:

  1. <span id="pole">
  2. <a href="" target="_blank" class="link" rel="nofollow">
  3. link</a>
  4. </span>


a css do niego tak:

  1. .link a:hover {
  2. font-family:verdana;
  3. color:#d10000;
  4. }


Z jakiegoś powodu ten css nie jest brany pod uwagę, a brane pod uwagę jest to co jest w ogólnym
a:hover {}

Jak w takim wypadku dodać a:hover dla linka z klasą 'link" ?
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 3)
bercow
post 24.04.2011, 00:47:21
Post #2





Grupa: Zarejestrowani
Postów: 156
Pomógł: 11
Dołączył: 25.12.2005

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


jak bys ostylowal a w spanie o polu id, a nie dawal dodatkowa klase ;>

zreszta zobacz tak
selektor.nazwaklasy:pseudoklasa {właściwość: wartość;}

Ten post edytował bercow 24.04.2011, 00:48:41
Go to the top of the page
+Quote Post
--Marcin--
post 24.04.2011, 00:57:10
Post #3





Goście







Rzeczywiście działa:
a.download:hover {}
Dzięki!
Go to the top of the page
+Quote Post
--Marcin--
post 24.04.2011, 00:58:06
Post #4





Goście







Nie download tylko link...
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 Wersja Lo-Fi Aktualny czas: 14.08.2025 - 01:53