Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [HTML]TAki rozkład tabel?
eunix
post
Post #1





Grupa: Zarejestrowani
Postów: 85
Pomógł: 0
Dołączył: 22.02.2006

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


Jak roztawić <tr>i <td> zeby wyglądało tak jak tu?


nie moge sobie z tym poradzic ;/
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 4)
aleksander
post
Post #2





Grupa: Przyjaciele php.pl
Postów: 742
Pomógł: 0
Dołączył: 14.12.2003
Skąd: Gdańsk, Trójmiasto

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


najłatwiej zrób tabelę w tabeli (na te trzy komórki powyżej tresci)

OT tabelki są przestarzałe no ale jak chcesz sie nimi męczyc to nie bede Cie nawracac ;]
Go to the top of the page
+Quote Post
eunix
post
Post #3





Grupa: Zarejestrowani
Postów: 85
Pomógł: 0
Dołączył: 22.02.2006

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


zrobiłem coś takiego:
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"     "http://www.w3.org/TR/2000/REC-xhtml1-20000126/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  3.      <meta http-equiv="content-type" content="text/html; charset=iso-8859-2" />
  4.      <title><?php echo $page_title; ?></title>
  5. <link rel="stylesheet" type="text/css" href="style.css" />
  6. </head>
  7. <TABLE WIDTH="756px" align="center" bgcolor="#5ebdff" CELLSPACING="0" CELLPADDING="1">
  8.   <tr>
  9. <td colspan="3" height="100px" bgcolor="#e6e6e6">logo</td>
  10.  </tr>
  11. <TR>
  12. <TD rowspan="3" bgcolor="#96d3ff" WIDTH="145px" ALIGN="left" VALIGN="top">
  13. test<br>sadsadsa<br>dsfsdas<br>sadasdsada<br>
  14. </TD>
  15. <TD bgcolor="#FFFFFF" width="3px"></td>
  16. <TD  bgcolor="#96d3ff" WIDTH="145px" ALIGN="left" VALIGN="top">
  17. test232
  18. </TD>
  19. </tr>
  20. <tr>
  21. <TD bgcolor="#FFFFFF" width="3px"></td>
  22. <TD bgcolor="#96d3ff" width="450px" ALIGN="left" VALIGN="top">
  23. co tak?
  24. </td>
  25. </tr>
  26. </body>
  27. </html>

ale chce odstęp pomiędzy z trescią "test232", a kolumną z trescią "co tak?"
Go to the top of the page
+Quote Post
krzysiekk
post
Post #4





Grupa: Zarejestrowani
Postów: 155
Pomógł: 17
Dołączył: 13.03.2006
Skąd: Jaworze

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


  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <title>Untitled Document</title>
  4. <meta http-equiv="Content-Type" content="text/html; charset=windows-1250" />
  5. <style type="text/css">
  6. <!--
  7. body {
  8.      background-color: #9C957C;
  9. }
  10. -->
  11. </style></head>
  12.  
  13. <div align="center">
  14. <table width="700"   border="1" cellpadding="0" cellspacing="0">
  15.  <tr>
  16.    <td height="100">&nbsp;</td>
  17.  </tr>
  18. <table width="730"   border="1" cellpadding="0" cellspacing="0">
  19.  <tr>
  20.    <td height="20">&nbsp;</td>
  21.  </tr>
  22. <table width="700"  border="1" cellpadding="0" cellspacing="0">
  23.  <tr>
  24.    <td rowspan="3" width="133">&nbsp;</td>
  25.    <td width="5" rowspan="3" bgcolor="#FFFFFF">&nbsp;</td>
  26.    <td width="173" height="50">&nbsp;</td>
  27.    <td width="168">&nbsp;</td>
  28.    <td width="191">&nbsp;</td>
  29.  </tr>
  30.  <tr>
  31.    <td height="8" colspan="3" bgcolor="#FFFFFF"></td></td>
  32.    
  33.  </tr>
  34.  <tr>
  35.    <td colspan="3" height="250" >&nbsp;</td>
  36.  
  37.  </tr>
  38.  
  39. <table width="730"  border="1" cellpadding="0" cellspacing="0">
  40.  <tr>
  41.    <td height="20">&nbsp;</td>
  42.  </tr>
  43. <table width="700"   border="1" cellpadding="0" cellspacing="0">
  44.  <tr>
  45.    <td height="100">&nbsp;</td>
  46.  </tr>
  47. </div>
  48.  
  49. </body>
  50. </html>

zobacz moze ci sie przyda
----------
Prosze pamietac o odpowiednim bbcode!
--
dr_bonzo
Go to the top of the page
+Quote Post
UsTeK
post
Post #5





Grupa: Zarejestrowani
Postów: 5
Pomógł: 0
Dołączył: 23.07.2003

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


Jeśli chcesz mieć to w jednej tabelce to przyjrzyj się temu schematowi:
(zarówno <br> jak i <style> są dodane tylko dlatego, aby uwidocznić schemat - aby wyglądało cyrka ebałt jak narysowałeś)
  1. <style type="text/css">
  2. td { vertical-align: top; }
  3. <table border=1 width=700>
  4.    <tr>
  5.        <td colspan=4>1<br><br><br><br></td>
  6.    </tr>
  7.    <tr>
  8.        <td colspan=4>2<br></td>
  9.    </tr>
  10.    <tr>
  11.        <td rowspan="2">3</td>
  12.        <td>4<br><br><br></td>
  13.        <td>5<br><br><br></td>
  14.        <td>6<br><br><br></td>
  15.    </tr>
  16.    <tr>
  17.        <td colspan="3">7<br><br><br><br><br><br><br><br><br><br></td>
  18.  
  19.    </tr>
  20.    <tr>
  21.        <td colspan="4">8<br></td>
  22.    </tr>



Pozdrawiam,
UsTeK
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: 20.08.2025 - 04:23