User:TheDireMaster/Table Rowspan and Colspan

{| border="1" cellpadding="5" cellspacing="0"
|-
| Column 1 || Column 2 || Column 3
|-
| rowspan="2"| A
| colspan="2" align="center"| B
|-
| C <!-- column 1 occupied by cell A -->
| D
|-
| E
| rowspan="2" colspan="2" align="center"| F
|-
| G <!-- column 2+3 occupied by cell F -->
|-
| colspan="3" align="center"| H
|}

This is what it looks like:

Column 1 Column 2 Column 3
A B
C D
E F
G
H

Colspan

edit
{| border="1" cellpadding="5" cellspacing="0"
|-
| A 
| B
|-
| colspan="2" style="text-align:center;"| C
|}
A B
C

Rowspan

edit
{| border="1" cellpadding="5" cellspacing="0"
|-
| rowspan="2" style="text-align:center;"| A 
| style="text-align:center;"| B
|-
| style="text-align:center;"| C
|}
A B
C