Quackit Logo

FREE Hosting!

With every domain name you register with ZappyHost, you get FREE hosting.

PLUS you get:

  • FREE Website Builder
  • FREE Blog
  • FREE Starter Web Page
  • FREE Email Account
  • & much more! (Total value $123 for FREE!)
Get your FREE hosting today! >>

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!


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!