CSS Gridlines For Alternating Columns
- by Michael
I have created a table with 20 rows and 10 columns. I would like to create a gridline separating every two columns.
So, between column 2 and 3 there would be a line separating them. There should also be lines separating columns 4 and 5, coulumns 6 and 7, and columns 8 and 9.
But I do not want to have a line separating columns 1 and 2, or columns 3 and 4, etc.
Is there any way to do this with CSS? I have tried creating a left border on each individual cell of the column, but it does not give me a solid line going down the column.
Any help would be greatly appreciated.