Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [HTML][CSS]Styl css
klapaucius
post
Post #1





Grupa: Zarejestrowani
Postów: 223
Pomógł: 3
Dołączył: 4.07.2009
Skąd: Kraków

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


Problem pewnie dla wielu osób bardzo błahy, jednak nie dla mnie. Mianowicie mam taki kod html:
  1. <table class = "klasa">
  2. <tr>
  3. <td>
  4. <a href = "#">link</a>
  5. </td>
  6. </tr>

A oto kod css:
  1. table.klasa {
  2. width: 60px;
  3. height: 60px;
  4. text-align: center;
  5. font-size: 11px;
  6. color: #FF0000;
  7. }


Jak zdefiniować natomiast np. kolor linków w tym wypadku (najlepiej bez ingerencji w kod html). Np. jak ustawić aby każdy link miał kolor czerwony..
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 2)
amii
post
Post #2





Grupa: Zarejestrowani
Postów: 728
Pomógł: 76
Dołączył: 12.06.2009

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


table.klasa a:link {color:green;}
table.klasa a:visited {color:green;}
table.klasa a:hover {color:red;}
table.klasa a:active {color:yellow;}
Go to the top of the page
+Quote Post
qrooel
post
Post #3





Grupa: Zarejestrowani
Postów: 306
Pomógł: 42
Dołączył: 25.03.2010
Skąd: Kraków

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


  1. .klasa a {color: red; }
Go to the top of the page
+Quote Post

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: 4.10.2025 - 23:56