Tabelle - Rowspan

Status
Nicht offen für weitere Antworten.

belanna

Grünschnabel
Hallo,

ich stehe hier vor einem kleinen Problem beim Verbinden von Zellen in einer Tabelle.
Mein Ziel ist es:

eine zelle - daneben zwei zellen untereinander - rechts davon wieder eine zelle, .

Ich hoffe ihr wisst was ich meine.
Ich bekomme das einfach nicht hin

Danke
Bela
 
Zuletzt bearbeitet:
Meinst Du so?
HTML:
<html>
  <body>
    <table border="1">
      <tr>
        <td>
          &nbsp;
        </td>
        <td rowspan="2">
          &nbsp;
        </td>
        <td>
          &nbsp;
        </td>
        <td>
          &nbsp;
        </td>
      </tr>
      <tr>
        <td>
          &nbsp;
        </td>
        <td>
          &nbsp;
        </td>
        <td>
          &nbsp;
        </td>
      </tr>
    </table>
  </body>
</html>

redlama
 
Sorry, ich hatte mich vertippt. Ich meinte es genau andersherum


HTML:
<table>
<body>
<tr>
<td rowspan="2" style="border:thick outset #BFBFBF; border-spacing:10px">123 </td>
<td style="border:thick outset #BFBFBF; border-spacing:10px">456 </td>
</tr>
<tr>
	<td style="border:thick outset #BFBFBF; border-spacing:10px">789 </td>
<td rowspan="2" style="border:thick outset #BFBFBF; border-spacing:10px">246 </td>
 
</tr>
 </body>
</table>
Die 246 geht aber nicht "hoch"
 
Zuletzt bearbeitet:
HTML:
<html>
  <body>
    <table>
      <tr>
        <td rowspan="2" style="border:thick outset #BFBFBF; border-spacing:10px">
          123
        </td>
        <td style="border:thick outset #BFBFBF; border-spacing:10px">
          456
        </td>
        <td rowspan="2" style="border:thick outset #BFBFBF; border-spacing:10px">
          246
        </td>
      </tr>
      <tr>
        <td style="border:thick outset #BFBFBF; border-spacing:10px">
          789
        </td>
      </tr>
    </body>
  </table>
</html>

redlama
 
Also Tipp, für das nächste Mal: rowspan bezieht sich immer auf die Zeilen, die da drunter liegen, nicht auf die, die da drüber liegen!
Genauso, wie colspan sich auf die rechts befindlichen Spalten bezieht!

redlama
 
Status
Nicht offen für weitere Antworten.

Neue Beiträge

Zurück