Tabellen nicht alle Linien anzeigen?

Status
Nicht offen für weitere Antworten.

CZCC

Mitglied
Hallo

ich habe eine Tabelle
HTML:
<table width="100%"  border="1">
  <tr>
    <td width="150">1</td>
    <td width="150">1</td>
    <td width="*">1</td>
  </tr>
  <tr>
    <td>2</td>
    <td>2</td>
    <td>2</td>
  </tr>
  <tr>
    <td>3</td>
    <td colspan=2>3</td>
  </tr>
</table>
Nun möchte ich das nur bestimmte Linien angezeigt werden hier eine Zeichnung. Die Dickgemalten Linien sllen angezeigt werden kann mir da einer den Code umschreiben ich finde da keine Lösung.

Gruß
CZCC
 
Mit CSS kein Problem:

HTML:
<table width="100%" border="0" cellspacing="0">
  <tr>
    <td style="border-right: 1px solid #000000; border-bottom: 1px solid #000000; width: 150px;">1</td>
    <td style="border-bottom: 1px solid #000000; width: 150px;">1</td>
    <td style="border-bottom: 1px solid #000000;">1</td>
  </tr>
  <tr>
    <td style="border-right: 1px solid #000000; border-bottom: 1px solid #000000; width: 150px;">2</td>
    <td style="border-bottom: 1px solid #000000;">2</td>
    <td style="border-bottom: 1px solid #000000;">2</td>
  </tr>
  <tr>
    <td style="border-right: 1px solid #000000;">3</td>
    <td colspan="2">3</td>
  </tr>
</table>
 
Es ginge auch einfacher:
HTML:
<table width="100%" border="1" frame="void" rules="rows">
	<colgroup>
		<col>
		<col style="border-left:thin solid">
		<col>
	</colgroup>
	<tr>
		<td width="150">1</td>
		<td width="150">1</td>
		<td width="*">1</td>
	</tr>
	<tr>
		<td>2</td>
		<td>2</td>
		<td>2</td>
	</tr>
	<tr>
		<td>3</td>
		<td colspan="2">3</td>
	</tr>
</table>
 
Status
Nicht offen für weitere Antworten.
Zurück