Prev | Current Page 247 | Next

Tommy Olsson and Paul O'Brien

"The Ultimate CSS Reference"

Although you can specify columns and
column groups in markup, cells are structurally contained within rows. Columns
and column groups are more esoteric items that are derived from the set of cells in
all rows of the table.
A table can be included in a formatting context as either a block-level or inline-level
box. It can have padding (p. 211), borders (p. 220), and margins (p. 200).
A table element generates an anonymous box that encompasses the table box and
the caption box (if they??™re present). The caption box is rendered outside the table
box, but is inextricably tied to it. When a table is repositioned, it??™s the outer
anonymous box that??™s moved to enable the caption to follow the table.
Captions inherit inheritable properties from the table. A caption is formatted as a
block box, but it doesn??™t behave like general block boxes in all respects. If a run-in
element precedes the table, it will not run into a caption box.
CSS Layout and Formatting
The Ultimate CSS Reference 170
The placement of the caption can be controlled via the caption-side property.


Pages:
235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259