Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [HTML] Zagnieżdzone tabele na divach
gorek
post
Post #1





Grupa: Zarejestrowani
Postów: 4
Pomógł: 0
Dołączył: 13.09.2010
Skąd: Strzegom

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


Witam

Zrobiłem taką prostą tabele:
  1. div.linia {
  2. width: inherit;
  3. padding: 4px 0 4px 0;
  4. border: 0;}
  5.  
  6. div.komorka {
  7. display: inline;
  8. width: 300px;}
  9. <div>
  10. <div class="linia">
  11. <div class="komorka">tresc</div>
  12. <div class="komorka">tresc</div>
  13. </div>
  14. </div>

teraz chciałbym w treści tych komórek umieścić kolejną tabele(również na divach) zeby zachowała taki układ:

ale nie wiem jak napisać styl dla tej zagnieżdżonej tabeli

Pomocy sad.gif
Go to the top of the page
+Quote Post
sada
post
Post #2





Grupa: Zarejestrowani
Postów: 302
Pomógł: 24
Dołączył: 6.12.2008

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



  1. .linia {
  2. width: inherit;
  3. padding: 4px 0 4px 0;
  4. border: 0;
  5. display:table;
  6. }
  7.  
  8. .komorka {
  9. display: table-cell;
  10. width: 300px;
  11. background-color:#00CC00;
  12. border:1px solid white;
  13. }
  14. .linia_wewn {
  15. display:table;
  16. width: inherit;
  17. padding: 4px 0 4px 0;
  18. border: 0;}
  19.  
  20. .komorka_wewn {
  21. display: table-cell;
  22. width: 300px;
  23. background-color: #996699;
  24. border:1px solid white;
  25. }

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: 19.08.2025 - 13:45