Reputation: 1
Any tips how to make only 1 vertical line visible in a table? Example: I have a 2 row, 2 column table and I only want the middle vertical line to be visible. None of the outside borders need to be visible.
Upvotes: 0
Views: 723
Reputation: 12910
Set your css like
table {
border: none;
border-spacing: 0;
border-collapse: collapse;
}
table tr td:nth-child(2) {
border-left: 1px solid red;
}
Upvotes: 4