Table row borders in HTML5 without gaps

后端 未结 1 632
后悔当初
后悔当初 2020-12-20 13:22

This seems trivial enough, but I can\'t seem to stumble upon the answer.

I want to have lines separating my rows in an HTML table, and nothing more. Simple enough, r

相关标签:
1条回答
  • 2020-12-20 14:15
        table {
           border-spacing: 0;
           border-collapse: collapse;
        }
    

    See if those help you out. Most browsers default to having a bit of padding between cells (remember the ol' HTML attribute cellspacing?). This will remove that.

    0 讨论(0)
提交回复
热议问题