Style Object
The borderSpacing property sets or returns the space between cells in a table.
Note: This property has no effect if borderCollapse is set to collapse.
Set the borderSpacing property:
Return the borderSpacing property:
| Value | Description |
|---|---|
| length length | Specifies the space between cells in length units. Negative values are not allowed. Default value is 0.
|
| inherit | The value of the borderSpacing property is inherited from parent element |
![]()
The borderSpacing property is supported in all major browsers.
Note: The borderSpacing property does not work in IE prior version 8. IE8 supports the borderSpacing property only if a !DOCTYPE is specified.
Set the space between cells:
Style Object
| WEB HOSTING |
|---|
| Best Web Hosting |
| PHP MySQL Hosting |
| Best Hosting Coupons |
| UK Reseller Hosting |
| Cloud Hosting |
| Top Web Hosting |
| $7.95/mo SEO Hosting |
| Premium Website Design |
| WEB BUILDING |
|---|
| XML Editor - Free Trial! |
| FREE Website BUILDER |
| Free Website Templates Free CSS Templates |
| Make Your Own Website |
| W3SCHOOLS EXAMS |
|---|
|
Get Certified in: HTML, CSS, JavaScript, XML, PHP, and ASP |
| W3SCHOOLS BOOKS |
|---|
|
New Books: HTML, CSS JavaScript, and Ajax |
| STATISTICS |
|---|
|
Browser Statistics Browser OS Browser Display |
| SHARE THIS PAGE |
|---|