Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

enter image description here

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>
like image 614
Danny Avatar asked Nov 24 '25 23:11

Danny


1 Answers

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;
}
like image 179
JK. Avatar answered Nov 28 '25 03:11

JK.



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!