Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [CSS] Złożona tabela oparta na CSS
oomaster
post
Post #1





Grupa: Zarejestrowani
Postów: 305
Pomógł: 3
Dołączył: 4.08.2006
Skąd: GDA

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


Witam,

Wpadłem na fajny pomysł a zarazem głupi pod względem budowy. Chcę zbudować tabelę jak na poniższej fotce.

(IMG:http://img408.imageshack.us/img408/6747/beznazwy2.gif)


Próbowałem coś wymodzić, byłem pewien ,że coś wyjdzie z tego ale kicha...

  1. <div id="top_mm">
  2. <div id="top_mm_a">1</div>
  3. <div id="top_mm_b">2</div>
  4. <div id="top_mm_c">3</div>
  5. <div id="top_mm_d">4</div>
  6. <div id="top_mm_e">5</div>
  7. <div id="top_mm_f">6</div></div>


  1. #top_mm {width:950px;}
  2. #top_mm_a {width:950px;}
  3. #top_mm_b{width: 220px; float: left; overflow: hidden;}
  4. #top_mm_c{width: 730px; float: left; overflow: hidden;}
  5. #top_mm_d {width: 330px; float: left; overflow: hidden;}
  6. #top_mm_e {width: 400px; float: left; overflow: hidden;}
  7. #top_mm_f {clear: both; width: 100%;}


Czy ktoś może pomóc mi rozwiązać ten problem ?
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
athei
post
Post #2





Grupa: Zarejestrowani
Postów: 389
Pomógł: 141
Dołączył: 11.04.2009

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


Można i tak:
  1. #top_mm_a {width:950px; background-color:#0F0;}
  2. #top_mm_b{width: 220px; float: left; overflow: hidden; background-color:#CF0;}
  3. #top_mm_c{width: 730px; float: left; overflow: hidden; background-color:#F00;}
  4. #top_mm_d {width: 330px; float: left; overflow: hidden; background-color:#CCC; }
  5. #top_mm_e {width: 400px; float: left; overflow: hidden; background-color:#FC9;}
  6. #top_mm_f {clear: both; width: 950px; background-color:#36F;}
  7. #pom {float:left; width:730px}
  8.  
  9. <div id="top_mm_a">1</div>
  10. <div id="top_mm_b">2</div>
  11. <div id="pom">
  12. <div id="top_mm_c">3</div>
  13. <div id="top_mm_d">4</div>
  14. <div id="top_mm_e">5</div>
  15. </div>
  16. <div id="top_mm_f">6</div>
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: 14.10.2025 - 17:00