Lena Stanley posted: " The CSS border-spacing property settles the distance between the borders of adjacent cells. The CSS border-spacing property works only when the CSS border-collapse property value is set to separate. Demo: Click the "Try it" button to change the"
The CSS border-spacing property settles the distance between the borders of adjacent cells. The CSS border-spacing property works only when the CSS border-collapseproperty value is set to separate.
Demo:
Click the "Try it" button to change the border-spacing property of the TABLE element to 10px:
Name
Surname
John
Black
Matt
Green
Adam
Brown
Syntax:
border-spacing: length;
length - defines the distance between the borders of adjacent cells (px, cm…).
Note:
You can define two values: 1) if one value is defined, it specifies both the horizontal and vertical spacing between cells, 2) if two values are specified, the first settles the horizontal spacing, and the second settles the vertical spacing.
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.