Jump to content

User:CiaPan/example of autoextending table cell

From Wikipedia, the free encyclopedia

A table with a second cell in a first row being too long and looking too short:

x

abc


def

y


The table with the cell set to rowspan=2:

x

abc


def

y


Same table after adding one more row:

x

abc


def

y
z


and with the cell modified to rowspan=3:

x

abc


def

y
z


And this is a table with a single row and two columns – the first cell contains a nested table.

x
y
z

abc


def

After adding some rows to the internal table, the right part (i.e. the second cell of a row of the external table) automagically expands vertically to fit the row's height.

v
w
x
y
z

abc


def