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 }
works, but that:-
table.docutils td th { border: 0 }
doesn't work.
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!)?
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"
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.
Thanks,
David
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.
On 21 Aug 15:10, Chris G wrote:
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.
You really meant that? Not "the table of class docutils, and its td and th"?
Which would be: table.docutils, table.docutils td, table.docutils th { border: 0; }
Cheers,
On Thu, Aug 21, 2008 at 03:16:01PM +0100, Brett Parker wrote:
On 21 Aug 15:10, Chris G wrote:
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.
You really meant that? Not "the table of class docutils, and its td and th"?
Which would be: table.docutils, table.docutils td, table.docutils th { border: 0; }
Quite right, the "all tds and all ths" catches too much, but for the moment I don't care. I fact I'm almost convinced I want to go to:-
table, td, th { border: 0 }
As I'd really prefer the default for everything to be borderless and then add borders in certian special cases.
... but yes, the existing code is probably not correct for the long term.