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.