CSS

CSS Intro

CSS Intro Quiz

CSS Intro Exercise

CSS Basic

CSS Basic Quiz

CSS Basic Exercise

CSS Advance

CSS Advance Quiz

CSS Advance Exercise

CSS3

CSS3 Quiz

CSS3 Exercise

CSS Properties

CSS Functions

CSS Selectors

CSS border spacing Property

CSS border-spacing Property

 

 

The border-spacing property is used to specify the distance between the borders of adjacent cells. It works only on the table element and only when the border-collapse property is set to separate.

 

Default Value:-

 

Its default value is 2px.

 

Syntax:-

 

Its syntax is:- border-spacing: length | initial | inherit;

 

Further Explanation:-

 

Value Description
length length Specifies the distance between the borders of adjacent cells in px, cm, etc. If only one value is present, it will specify both horizontal and vertical.
initial Sets this property to its default value.
inherit Inherits this property from its parent element.

Code Explanation

All Tutorials related to CSS Properties

All Sections related to CSS