codescracker


css

CSS Border Spacing



« Previous Tutorial Next Tutorial »


The border-spacing property allows you to specify the amount of space between the borders of adjacent table cells.

The amount of space between the borders of adjacent cells is also known as border space.

CSS border-spacing Property Values

The following table shows the possible values of the border-spacing property :

Value Description
length Specifies the horizontal and vertical spacing between borders. If two length values are provided to the property, the first value sets the horizontal spacing and the second value sets the vertical spacing.
inherit Specifies that the value of the border-spacing property should be inherited from the parent element.

CSS border-spacing Property Syntax

The syntax of the border-spacing property is as follows:

border-spacing: 10px 50px;

In the preceding syntax, the border-spacing property takes two values, 10 pixels and 50 pixels. The first value specifies the horizontal spacing and the second value specifies the vertical spacing.


« Previous Tutorial Next Tutorial »


Latest 5 Posts by CodesCracker



Tools
Calculator

Quick Links
Signup - Login - Give Online Test