Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [CSS] Link oraz obrazek listy.
Wicepsik
post
Post #1





Grupa: Zarejestrowani
Postów: 1 575
Pomógł: 299
Dołączył: 26.03.2009

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


Witam,
Dzisiaj zacząłem bawić się w CSS. Przeczytałem trochę oraz na bieżąco przy kodowaniu mojego layoutu czytam w necie.

  1. #sidebar ul li{
  2. list-style:none;
  3. background: url('images/83.png') no-repeat 2px 5px;
  4. padding: 2px 0px 0px 25px;
  5.  
  6. }
  7. #sidebar ul li:hover{
  8. list-style:none;
  9. background: url('images/81.png') no-repeat 2px 5px;
  10. padding: 2px 0px 0px 25px;
  11. }
  12.  
  13. #sidebar a {
  14. color: #009300;
  15. text-decoration: none;
  16. }
  17.  
  18. #sidebar a:hover {
  19. color: #3B3BFF;
  20. text-decoration: none;
  21. }


Mam coś takiego. Czy da się jakimś sposobem połączyć link oraz podpunkt listy ? Oczywiście ten kod chyba jest poprawny, zmienia się razem.


--------------------
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 1)
Wicepsik
post
Post #2





Grupa: Zarejestrowani
Postów: 1 575
Pomógł: 299
Dołączył: 26.03.2009

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


@up
Dzięki za chęci.



Ok, poradziłem sobie.
Rozwiązanie:

  1. #sidebar ul li{
  2. list-style: none;
  3. }
  4. #sidebar ul li a{
  5. color: #009300;
  6. text-decoration: none;
  7. background: url('images/83.png') no-repeat 2px 5px;
  8. padding: 2px 0px 0px 25px;
  9. }
  10. #sidebar ul li a:hover{
  11. background: url('images/81.png') no-repeat 2px 5px;
  12. padding: 2px 0px 0px 25px;
  13. color: #3B3BFF;
  14. text-decoration: none;
  15. }


--------------------
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: 22.08.2025 - 04:39