How to add borders around specific rows in a table with CSS?

Spread the love

Sometimes, we want to add borders around specific rows in a table with CSS.

In this article, we’ll look at how to add borders around specific rows in a table with CSS.

How to add borders around specific rows in a table with CSS?

To add borders around specific rows in a table with CSS, we set the outline property.

For instance, we write

tr {
  outline: thin solid black;
}

to set the tr element’s outline to a thin black outline.

Conclusion

To add borders around specific rows in a table with CSS, we set the outline property.

Leave a Reply

Your email address will not be published. Required fields are marked *