CSS Border-Spacing Property

In this chapter you will learn:
Border-spacing property
Example of border-spacing property

CSS border-spacing property is used to set spaces or distances between cells. You can use this property to give the distance between cells of the table.

Example of border-spacing property:-
 <table border="1px">


When you run the given code, you will get that the cells of table ate in a distance of 10 px.

Output:- example of border-spacing property


In this chapter, you have learned about the border-spacing property so now try it yourself and click on next button to continue-


Share your thought