294)
sets the cell spacing for a table element that uses the separated borders model
empty-cells (p. 295)
controls the rendering of empty cells in a table that uses the separated borders model
The Ultimate CSS Reference 294
border-spacing
border-spacing: { length [length] | inherit } ;
This property sets the spacing between
adjacent table cells??™ borders using the
separated borders model. If the
collapsing borders model is used, this
property is ignored.
Note that the distance between a cell
border and the table border is the
corresponding border spacing plus the
table??™s padding for that side.
See Table Formatting (p. 168) for details
about the table border models.
Example
This style rule sets 1em of horizontal
spacing and 0.5em of vertical spacing
between the cells of the table element with
the ID "results":
#results {
border-collapse: separate;
border-spacing: 1em 0.5em;
}
The CSS2.1 specification states that user agents may apply this property to frameset
elements (therefore replacing the framespacing attribute).
Pages:
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441