Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [CSS] Tabela i wiersze - podział
david8213
post
Post #1





Grupa: Zarejestrowani
Postów: 308
Pomógł: 0
Dołączył: 9.12.2009

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


Jak zrobić przerwę między dwoma pierwszymi wierszami a dwoma drugimi.
wiersze z cyframi mają być odzielone np trzema <br> od wierszy z literami
Mozna to zrobić bez użycia <br> tylko za pomocą CSS ?

Zrobiłem jak poniżej ale nie działa

  1. <style>
  2. #glowny1 { widht:80%; height:auto; background-color: #32CD32; }
  3.  
  4. #glowny2 { widht:80%; height:auto; background-color: #32CD32; margin-top: 10px; }
  5.  
  6. .columna1 {width:50%; background-color: #32ffff; float:left; height:auto; margin: 0 auto; }
  7. .columna2 {width:50%; background-color: red; float:right; height:auto; margin: 0 auto; }
  8. .columna3 {width:50%; background-color: grey; float:left; height:auto; margin: 0 auto; }
  9. .columna4 {width:50%; background-color: yellow; float:right; height:auto; margin: 0 auto; }
  10. </style>
  11.  
  12. <div id="glowny1">
  13. <div class="columna1">111111</div>
  14. <div class="columna2">222222</div>
  15. <div class="columna3">333333</div>
  16. <div class="columna4">444444</div>
  17. </div>
  18.  
  19.  
  20. <div id="glowny2">
  21. <div class="columna1">AAAAA</div>
  22. <div class="columna2">BBBBB</div>
  23. <div class="columna3">CCCCC</div>
  24. <div class="columna4">DDDDD</div>
  25. </div>
  26.  


Ten post edytował david8213 8.01.2020, 16:10:37
Go to the top of the page
+Quote Post

Posty w temacie


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: 21.08.2025 - 00:08