Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [CSS] nie działa .klasa span
tenloginjestzaje...
post
Post #1





Grupa: Zarejestrowani
Postów: 358
Pomógł: 1
Dołączył: 20.07.2014

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


Witam mam problem ze stylami. Zawsze używałem .klasa a lub .klasa span gdzie klasa jest divem. Niestety nie działa.

  1. <style>
  2. *{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;margin:0}
  3. body{background:none repeat scroll 0 0 #d3d3d3;font-size:20px;margin:auto;font-family:tahoma;color:#444}
  4. a,a:link,a:visited,a:hover,a:active{color:#003366;text-decoration:none;}
  5. .klasa{background-color:#ffffff;width:100%;height:260px;border:1px solid #C0C0C0;}
  6. .klasa span{padding:5px;}
  7. .klasa a{font-size:20px;}
  8. </style>
  9.  
  10. <div class="klasa">
  11. <span>test</span>
  12. </div>


Dziękuje za pomoc.
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 1)
trueblue
post
Post #2





Grupa: Zarejestrowani
Postów: 6 806
Pomógł: 1828
Dołączył: 11.03.2014

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


Działa bez problemu.
https://jsfiddle.net/5kuha43k/1/
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: 23.08.2025 - 22:41