开发者

How to make space between rows, with transparent spacing/border - HTML/CSS

I want to make something similiar to this but with table rows

How to make space between rows, with transparent spacing/border - HTML/CSS

I did this with <li>, fancy borders, etc and was really easy, but with table rows, I tried pretty much everything, tr, td border collapse, separate, margins, paddings and I can't get it right.

The structure of the table I want to make is something like this:

<table>
<开发者_运维知识库;tr><td>abc</td><td>abc</td></tr>
<tr><td>abc</td><td>abc</td></tr>
<tr><td>abc</td><td>abc</td></tr>
</table>


You're looking for border-spacing.

http://www.w3schools.com/cssref/pr_tab_border-spacing.asp

#id1 {
  border-collapse: separate;
  border-spacing: 1em 0.5em;
}

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜