Click here to Skip to main content
15,890,186 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I'm using Genesis theme on latest Wordpress.


Vertical lines seem to be missing from my HTML tables.Even though it looks modern, it sometimes causes confusion.

I don’t require vertical lines at starting and ending of the column. I require it only in between the column.

But if it not possible, there can also be vertical lines at the beginning and end of the column.

What I have tried:

https://i.imgur.com/yGOstjd.png[^]
Posted
Updated 11-Dec-17 16:49pm
v2

Go to Appearance > Customize and add some custom CSS:

th, td {
    border-right: 1px solid #eeeeef;
}

th:last-child, td:last-child {
    border-right: none;
}

Now it should show borders between columns.
 
Share this answer
 
Kastriotcunaku, thanks for your code and it works fine.

Here is the compressed version of the CSS code, if anyone want to use:

CSS
th:not(:last-child), td:not(:last-child) { border-right: 1px solid #eeeeef; }
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900