I had previously asked a question on this issue, to which you guys supplied fantastic answers. I since “discovered” the intoxicating power of contextual styling (http://www.w3.org/TR/css3-selectors/#selectors) — thanks once again to you all — and now I am hooked.
I’ve made good progress on applying contextual styling to my current design here:
http://jsfiddle.net/gFA4p/200/
I’ve run into a few issues, though.
Here’s a screenshot of what I’m trying to do:

My first question, am I being overzealous in trying to apply contextual rules and making it harder than it needs to be?
Two, if not, what do I need to do to accomplish my target styling, per the screenshot?
Three, how to make this cross-browser compatible? Even as-is, it looks wonky in other browsers.
Using CSS selectors is not overzealous as long as it allows your HTML code and style sheets to be simpler, easier to understand and modify;
for example, with less
classNameattributes in your HTML.Furthermore, it is the best way to learn them!
For the second part of your question, I suggest you this CSS (
http://jsfiddle.net/S8Bne/ ) :
The nice thing with this solution is that it does not require to modify your HTML code at all.
However, the borders that must be dotted will remain solid if the browser (e.g. IE8) does not support the CSS3
:nth-childor:notpseudo-class.Tell me if you would prefer something that relies only on CSS2.
But in that case it will be necessary either to add a
classattribute to every cell that has to be dotted,or to split every row that has 7 cells so that every “vlah” cell becomes the first child of its row.