This works fine until you add "colspan" to the mix. With colspan, unfortunately the sequence is knocks out completely and it doesn't look right.
No matter I thought, I'd specifiy the left borders for only the .1z .3z .5z classes etc. Trouble is it's not affecting them at all. Each cell has a class of .slot aswell as a second class which denotes it's position during the day.If i change the rule for .slot it affects everything but if i change rules for 1z, etc. It does nothing?
Very puzzled.
You can see my attempts at the CSS on lines 18 through 29.
Question
Axel
Hi all,
I'm trying to make a table which has alternating borders across the columns. Now I can do this with the following code:
This works fine until you add "colspan" to the mix. With colspan, unfortunately the sequence is knocks out completely and it doesn't look right.
No matter I thought, I'd specifiy the left borders for only the .1z .3z .5z classes etc. Trouble is it's not affecting them at all. Each cell has a class of .slot aswell as a second class which denotes it's position during the day.If i change the rule for .slot it affects everything but if i change rules for 1z, etc. It does nothing?
Very puzzled.
You can see my attempts at the CSS on lines 18 through 29.
Many thanks.
http://jsfiddle.net/ZQSZ2/
Link to comment
Share on other sites
5 answers to this question
Recommended Posts