CSS Gridlines For Alternating Columns

Posted by Michael on Stack Overflow See other posts from Stack Overflow or by Michael
Published on 2010-05-20T13:35:34Z Indexed on 2010/05/22 16:50 UTC
Read the original article Hit count: 295

Filed under:
|
|

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.

© Stack Overflow or respective owner

Related posts about css

Related posts about table