Page 6 of 23PREVNEXT

HTML Tables II: Table and cell widths

HTML table pushed past its intended width

The large text "Championzone" is pushing this table beyond its 200-pixel width.

One caveat to remember: If you define a width for your table, browsers will not honor that width if the contents exceed the width.

For example, the table here was specified to be 200 pixels wide. But, the word "Championzone" is clearly wider than that. Consequentially, the table is pushed past the 200-pixel width to accommodate the contents.

This problem usually occurs when you put long words or URLs into your tables. But it can also happen if you put a really wide image in there as well. Keep this in mind as you fill your tables with content.

Page 6 of 23PREVNEXT