HTML and CSS Reference
contents, it ignores a width attribute in one of the column's cell tags that
attempts to make the cell only 100 pixels wide.
10.2.4.3. The height attribute
The height attribute lets you specify a minimum height, in pixels, for the
current cell. Because all cells in a row have the same height, you need
to specify this attribute on only one cell in the row, preferably the first.
If some other cell in the row needs to be taller to accommodate its con-
tents, the browser ignores the height attribute, and all the cells in the
row are set to the larger size.
By default, all the cells in a row are the height of the largest cell in the
row that just accommodates its contents.
10.2.4.4. The colspan attribute
It's common to have a table header that describes several columns be-
neath it, like the headers we used in Figure 10-1 . Use the colspan at-
tribute in a table header or data tag to extend a table cell across two
or more columns in its row. Set the value of the colspan attribute to an
integer value equal to the number of columns you want the header or
data cell to span. For example:
tells the browser to make the cell occupy the same horizontal space as
three cells in rows above or below it. The browser flows the contents of
the cell to occupy the entire space.
What happens if there aren't enough extra cells on the right? The
browser just extends the cell over as many columns as exist to the
right; it doesn't add extra empty cells to each row to accommodate an
overextended colspan value. You may defeat that limitation by adding