Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [CSS]:first-child
AboutMe
post
Post #1





Grupa: Zarejestrowani
Postów: 261
Pomógł: 0
Dołączył: 24.02.2008

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


Witam,

Mam taki kod i chciałbym zastosować specjalny styl dla pierwszego .sidebar-title. Czy da się to jakoś zrobić przy pomocy :first-child albo innej pseudoklasy?

  1. <div id="sidebar">
  2.  
  3. <div class="sidebar-box">
  4. <div class="sidebar-title">...</div>
  5. <div class="sidebar-box-child">
  6. ...
  7. </div>
  8. </div>
  9.  
  10.  
  11. <div class="sidebar-box">
  12. <div class="sidebar-title">...</div>
  13. <div class="sidebar-box-child">
  14. ...
  15. </div>
  16. </div>
  17.  
  18. </div>


Ten post edytował AboutMe 16.12.2012, 13:08:32
Go to the top of the page
+Quote Post

Posty w temacie
- AboutMe   [CSS]:first-child   16.12.2012, 13:07:35
- - piotrex41   Ja bym spróbował zrobić to jakoś tak: Koddiv#sideb...   16.12.2012, 13:11:14
- - AboutMe   Działa, dzięki!   16.12.2012, 13:18:41


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: 17.09.2025 - 21:07