HTML and CSS Reference
In-Depth Information
creates a header cell that, as you might expect, spans across three
columns and down four rows, including the current cell and extending
two more cells to the right and three more cells down. The browser flows
the contents of the cell to occupy the entire space, aligned inside ac-
cording to the current row's alignment specifications or to those you ex-
plicitly include in the same tag, as described earlier.
10.2.4.7. The nowrap attribute
Browsers treat each table cell as though it were a browser window unto
itself, flowing contents inside the cell as they would common body con-
tents (although subject to special table cell-alignment properties). Ac-
cordingly, the browsers automatically wrap text lines to fill the allotted
table cell space. The nowrap attribute, when included in a table header
or data tag, stops that normal word wrapping. With nowrap , the browser
assembles the contents of the cell onto a single line, unless you insert a
<br> or <p> tag, which forces a break so that the contents continue on a
new line inside the table cell.
10.2.4.8. The bgcolor and background attributes
Yet again, you can change the background colorthis time for an individu-
al data cell. This attribute's value is either an RGB hexadecimal color
value or a standard color name. Appendix G provides both the syntax of
color values and the acceptable color names.
The background attribute supplies the URL of an image that is tiled to
fill the background of the cell. The image is clipped if the cell is smaller
than the image. Interestingly, Internet Explorer, like all the other popu-
lar browsers, supports background when applied to a single cell, but un-
like the other popular browsers, does not support background for <table>
or <tr> .
Neither background nor bgcolor overrides a related stylesheet property.
 
Search WWH ::




Custom Search