Ads

Jumat, 21 Januari 2011

Membuat Tabel Menggunakan ukuran

 script..

<div dir="ltr" style="text-align: left;" trbidi="on">
<table border="1" bordercolor="#cc0000" height="300" style="width: 400px;">
 <tbody>
<tr>
  <td align="center" colspan="2" height="50" width="400"><span style="color: black; font-family: Comic Sans MS;">1</span></td>
 </tr>
<tr>
  <td align="center" height="250" width="50"><span style="color: black; font-family: Comic Sans MS;">2</span></td>
  <td align="center" height="250" width="350"><span style="color: black; font-family: Comic Sans MS;">3</span></td>
 </tr>
</tbody></table>
<br />
<table border="1" bordercolor="#660099" height="100%">
 <tbody>
<tr>
  <td align="center" height="100%" rowspan="2" width="20%"><span style="color: black; font-family: Comic Sans MS;">1</span></td>
  <td align="center" height="20%" width="80%"><span style="color: black; font-family: Comic Sans MS;">2</span></td>
 </tr>


<tr>
  <td align="center" height="80%" width="80%"><span style="color: black; font-family: Comic Sans MS;">3</span></td>
 </tr>
</tbody></table>
<br />
<table border="1" bordercolor="#999900" height="300">
 <tbody>
<tr>
  <td align="center" colspan="3" height="50" width="100%"><span style="color: black; font-family: Comic Sans MS;">1</span></td>
 </tr>
<tr>
  <td align="center" height="200" width="20%"><span style="color: black; font-family: Comic Sans MS;">2</span></td>
  <td align="center" height="200" width="60%"><span style="color: black; font-family: Comic Sans MS;">3</span></td>
  <td center="" height="200 align=" width="20%"><span style="color: black; font-family: Comic Sans MS;">4</span></td>
 </tr>
<tr>
  <td align="center" colspan="3" height="50" width="100%"><span style="color: black; font-family: Comic Sans MS;">5</span></td>
 </tr>
</tbody></table>
<br />
<table border="1" bordercolor="#ccff33" height="400&quot;">
 <tbody>
<tr>
  <td align="center" colspan="2" height="20%" width="70%"><span style="color: black; font-family: Comic Sans MS;">1</span></td>
  <td align="center" height="200" rowspan="2" width="30%"><span style="color: black; font-family: Comic Sans MS;">2</span></td>
 </tr>
<tr>
  <td align="center" height="80%" rowspan="2" width="35%"><span style="color: black; font-family: Comic Sans MS;">3</span></td>
  <td align="center" height="40%" width="35%"><span style="color: black; font-family: Comic Sans MS;">4</span></td>
 </tr>
<tr>
  <td align="center" height="200" width="35%"><span style="color: black; font-family: Comic Sans MS;">5</span></td>
  <td align="center" height="200" width="30%"><span style="color: black; font-family: Comic Sans MS;">6 </span></td>
 </tr>
</tbody></table>
</div>








hasil...
1
2 3

1 2
3

1
2 3 4
5

1 2
3 4
5 6

0 komentar: