Search results
Results from the WOW.Com Content Network
Specifies the space between the content of adjacent columns, in any valid CSS width unit, e.g., gap=2em. The default spacing (set by browser) is 1em. |class= An HTML class, or multiple space-delimited classes, to apply to the columns. |style= CSS styling to apply to the columns. |small=yes Sets font size to 90%. |content= Content to apply to ...
Note, in the above example, how the column-spacer of the 2nd column is set to only 9 spaces (compared to 13 on column 1), due to the text entries being longer words in column 2. In general, a set of 3 columns can each be spaced between 9-23 spaces apart, depending on wider column-spacers for shorter words in each column.
If the first text-word is too long, no text will fit to complete the left-hand side, so beware creating a "ragged left margin" when not enough space remains for text to fit alongside floating-tables. If multiple single image-tables are stacked, they will float to align across the page, depending on page-width.
To force initial column widths to specific requirements, rather than accepting the width of the widest text element in a column's cells, follow this example. Note that wrap-around of text is forced for columns where the width requires it. Do not use min-width:Xpx;
Also, if the table has cell spacing (and thus border-collapse=separate), meaning that cells have separate borders with a gap in between, that gap will still be visible. A cruder way to align columns of numbers is to use a figure space   or  , which is intended to be the width of a numeral, though is font-dependent in practice:
See the Width section of Help:Table. To summarize, max-width is the preferred way to limit widths on tables. It works on divs too. Note though that in both tables and divs there needs to be spaces in long lines of text or wikitext. Otherwise there is no point at which that line can wrap.
Get AOL Mail for FREE! Manage your email like never before with travel, photo & document views. Personalize your inbox with themes & tabs. You've Got Mail!
The cellpadding attribute was added to version 2.0 of the HTML language in 1996. [4] Space between text and borders is an important element of web page design, because it improves the readability of text and visual appeal of graphics in table cells. [5]