Which CSS property is used to control space between cells in a table?

  • border-spacing 
  • cell-spacing 
  • margin 
  • padding 
The border-spacing property in CSS is used to set the space between the borders of adjacent table cells. This property applies only when the table's border-collapse property is set to separate. Note that cell-spacing is often mistakenly referred to but is not a valid CSS property; it's an attribute for HTML tables but is not recommended for modern web design. Instead, CSS properties like border-spacing should be utilized. 
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *