当前位置: 动力学知识库 > 问答 > 编程问答 >

css - Pad HTML Table Columns, Two Borders?

问题描述:

Is it possible to add space between columns, but maintain a border on both sides? See the following image:

网友答案:

One option is using the border-spacing CSS rule. Something like this:

table {
  border-spacing: 10px 0;
}

Here is a quick example.

网友答案:

Border spacing css attribute will fix your problem.

table {
border-spacing: 10px 0;
}
网友答案:

You can use border-spacing.

table { 
      border-spacing: 10px 0;
}

For more table related styles you can check this http://www.w3.org/TR/CSS2/tables.html

分享给朋友:
您可能感兴趣的文章:
随机阅读: