Allen Winkler
Allen Winkler

Reputation: 1

How to make 1 vertical line visible in table

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

Answers (1)

pedrouan
pedrouan

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

Related Questions