In CSS, you can specify the spacing between table cells using the table's border-spacing property.
However, this leads to an even distance between columns and rows, and I find more situations where the projects I use require gaps between rows, but not columns, or vice versa.
If I have a solid background, I can simulate the interval using borders of the same color as the background color.
I could also make div (for example) the first child of each table cell and use either padding or fields to get the desired results, but this is a lot of extra markup to fit the style.
Given that the data displayed is tabular, is there a reasonable way to achieve this style using tables?
source
share