Combining Colspan And Rowspan - Spring Into HTML And CSS [Book]

Skip to main content

Get full access to Spring Into HTML and CSS and 60K+ other titles, with a free 10-day trial of O'Reilly.

There are also live events, courses curated by job role, and more.

Start your free trial

Combining colspan and rowspan

Of course, you can mix colspan and rowspan to get a range of various tables. Example 4-13 demonstrates a mix of column and row spanning.

Example 4-13. Combining colspan and rowspan

<table width="90%" border="1" cellspacing="5" cellpadding="5" summary="This table combines colspan and rowspan"><caption>Combining colspan and rowspan</caption><tr><th colspan=2" rowspan="2">Header (spans 2 columns and 2 rows)</th><td>data</td></tr><tr><td>data</td></tr><tr><td>data</td><td>data</td><td>data</td></tr></table>

Figure 4-14 shows the results.

Figure 4-14. Combining colspan and rowspan.

image

NOTE

You can mix and match ...

Get Spring Into HTML and CSS now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.

Start your free trial

Don’t leave empty-handed

Get Mark Richards’s Software Architecture Patterns ebook to better understand how to design components—and how they should interact.

It’s yours, free.

Get it now
Cover of Software Architecture Patterns
Close

Check it out now on O’Reilly

Dive in for free with a 10-day trial of the O’Reilly learning platform—then explore all the other resources our members count on to build skills and solve problems every day.

Start your free trial Become a member now
Close

Từ khóa » Html Colspan Rowspan Css