Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [CSS]A'la if zmieniający kolor diva po określonej czynności
JustHuman4
post
Post #1





Grupa: Zarejestrowani
Postów: 63
Pomógł: 2
Dołączył: 10.12.2011
Skąd: Stumilowy Las

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


Witam. Oto kod stronki:

  1. <title>bleble</title>
  2.  
  3. <style type="text/css">
  4. #pole{
  5. width: 1000px;
  6. height: 1500px;
  7. background: lime;
  8. margin: auto;
  9. -webkit-transition: all 1s linear;
  10. }
  11.  
  12. #kwadrat{
  13. width: 500px;
  14. height: 500px;
  15. background: green;
  16. margin: auto;
  17. -webkit-transition: all 1s linear;
  18. }
  19.  
  20. #kwadrat:hover{
  21. background: greenyellow;
  22. }
  23.  
  24. #pole:hover{
  25. background: gray;
  26. }
  27.  
  28.  
  29.  
  30. </style>
  31.  
  32. </head>
  33. <div id="pole">
  34. <div id="kwadrat">
  35. </div>
  36. </div>
  37.  
  38. </body>
  39. </html>



Chcę zrobić aby div "pole" zmienił kolor na szary dopiero po najechaniu na div "kwadrat".
Pozdrawiam

Ten post edytował JustHuman4 2.03.2012, 19:15:16
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: 23.08.2025 - 16:22