Quackit Logo
HTML
CSS
Scripting
Database
Hosting
Design
XML

Print Version

CSS border-spacing

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!


Also see all CSS properties listed alphabetically


Enjoy this website?

  • Share
  • Add this page to your Favorites
  • Link to this page (copy/paste into your own website or blog):
  • Link to Quackit using one of these banner ads.
  • Help support Quackit by making a donation

Oh, and thank you for supporting Quackit!

© Copyright 2000 - 2010 Quackit.com