css has a "border spacing" property, which applies to tables and inline tables. but i' read somewhere it's only possible to use, when you set an element border.
http://www.meyerweb.com/er
Main Topics
Browse All TopicsI was wondering if cell-spacing is actually available in CSS?
I am currently using the following CSS code to display a table and the spacing between each cell seems to be 2px, not 1px as specified in the table attribute. Is there any other way besides forcing each table with the tables html cellspacing attribute, if cell-spacing does not work in CSS?
table
{
margin: 0px;
color: #0000CC;
background-color:#6666FF;
cell-spacing: 1px;
}
td
{
background-color:#FFFFCC;
color: #0000CC;
font-size: 8pt;
font-family: "Arial, Helvetica, sans-serif";
padding: 2px;
}
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
css has a "border spacing" property, which applies to tables and inline tables. but i' read somewhere it's only possible to use, when you set an element border.
http://www.meyerweb.com/er
I couldn't get any of the answers above to work for me; however, I found this table-level method with the 'border-collapse' value that works in both IE 6.x and Firefox:
table {
border-collapse: collapse;
}
Then I set the border for td's to 'none' and added some padding to space the table rows out a bit so they didn't look crowded:
td {
border-style: none;
padding: 3px 2px 3px 2px;
}
I hope it helps.
Isn't this CSS stuff a mess with different browsers?
Business Accounts
Answer for Membership
by: dorwardPosted on 2004-04-09 at 00:02:49ID: 10789583
table {
tables.htm l#borders
border-spacing: 1px;
}
- Internet Explorer doesn't support it.
See border-collapse too (Internet Explorer does support border-collapse).
http://www.w3.org/TR/CSS2/