How to fix the border around the tr element not showing with CSS?

Spread the love

Sometimes, we want to fix the border around the tr element not showing with CSS.

In this article, we’ll look at how to fix the border around the tr element not showing with CSS.

How to fix the border around the tr element not showing with CSS?

To fix the border around the tr element not showing with CSS, we set the border-collapse property.

For instance, we write

table {
  border-collapse: collapse;
}

to apply border-collapse: collapse; to the table element to show the border around the tr elements in the table.

Conclusion

To fix the border around the tr element not showing with CSS, we set the border-collapse property.

Leave a Reply

Your email address will not be published.