Quackit Logo

Got a MySpace Page?

Get "www.yourname.com" for your MySpace page. Learn how >>.

CSS border-spacing

Print Version

Also see the full, alphabetical list of CSS properties


The CSS border-spacing property allows you to specify the amount of space between borders of adjoining cells in tables. It can have an effect similar to HTML's cellspacing.

You can provide either one value or two. If you provide two values, the first value determines the horizontal spacing and the second determines the vertical spacing. If only one is provided, this value determines horizontal and vertical spacing.

Syntax: border-spacing: <value>
Possible Values:
  • <length> (i.e. 2px)
  • inherit
Initial Value: 0
Applies to: 'table' and 'inline-table' elements.
Inherited: Yes
Media: Visual
Example: table.space {border-spacing:10pt}
Try it yourself! HTML Editor


Also see all CSS properties listed alphabetically


Enjoy this website?

  1. Link to this page (copy/paste into your own website or blog):
  2. Add this page to your favorite social bookmarks sites:
                     
  3. Add this page to your Favorites

Oh, and thank you for supporting Quackit!