Style Sheet Table Properties and Values

CSS rules are embedded in the head, linked or inline. The rules must be within the html style element.

white-space:States whether text will wrap around to the next line
td {white-space:nowrap}
border-collapse: Defines the borders displayed. collapse (default) Each cell border merges into a common border. separate - Each cell border is separate
td { border-collapse: separate}
border-spacing: Defines the spacing between table borders. Any valid number
table { border-spacing: 5px}
border-style: Defines the type of table borders. It uses 3 attributes- border-style, border-width, border-color
table { border: red 3px double}
column-span:Defines the number of columns to span. Any valid number
td { column-span: 3}
row-span:Defines the number of rows to span.
Any valid number
td { row-span: 3}
caption-side: Sets placement of the caption relative to the table. top, bottom, right or left
td {caption-side: top}
Web Design with XHTML Part II
Doris Cuffey, Instructor