0

I have a problem regarding my CSS, I have a <table> which I put border when I put CSS in it which is like this

table, th, td, tr {
    border: thin 1px solid black;
}

I got double solid line which look like this

enter image description here

What I need is a table that doesn't have spaces in between. How can I do that in CSS? thanks.

Josh Crozier
  • 233,099
  • 56
  • 391
  • 304
akoDwin
  • 139
  • 2
  • 2
  • 14

1 Answers1

4

Use border-collapse

table {
  border-collapse: collapse;
}
sabithpocker
  • 15,274
  • 1
  • 42
  • 75