On Thu, Aug 21, 2008 at 02:33:53PM +0100, David Reynolds wrote:
On 21 Aug 2008, at 2:20 pm, Chris G wrote:
I wanted tables with no borders at all, after mucking around for a while with the CSS I found that:-
table.docutils, td, th { border: 0 }
This means the "table with the class docutils, and all tds and all ths"
Which is what I intended.
works, but that:-
table.docutils td th { border: 0 }
This means "the ths inside the td's inside the table with the class docutils"
According to CSS documentation those commas are wrong but they've made it work for me. Is this just a quirk of Firefox (2.0.0.12 on Linux) or am I missing something (quite likely!)?
Both are valid but will do different things. The latter one seems a bit silly, since you shouldn't have ths inside tds.
Which isn't what I intended. Thanks for explaining it.
... and the CSS documentation I was looking at has it right too, I just didn't read it hard enough. Oops.