Printable Version of Topic

Click here to view this topic in its original format

HTMLHelp Forums _ Cascading Style Sheets _ Styling tables

Posted by: Brian Chandler Sep 18 2021, 11:11 AM

So I'm writing css to get everything lined up properly in a table, and I decided to switch to border-collapse:ibid (illiterates again! It should be "border:collapse / border:separate" or "border-collapse:yes/no")

Anyway, with the borders collapse, border-bottom for cell (1, 1) is the same as border-top for cell (2,1). Except of course that there may be two specifications for this border segment, which will often be different. How do I resolve this?

I would look it up, except that I can't see what words to look for, or I could just waste another weekend experimenting, but I'd prefer not to...

Posted by: Christian J Sep 18 2021, 06:07 PM

I think this is the relevant section: https://www.w3.org/TR/CSS21/tables.html#border-conflict-resolution

Posted by: Brian Chandler Sep 19 2021, 11:44 AM

QUOTE(Christian J @ Sep 19 2021, 08:07 AM) *

I think this is the relevant section: https://www.w3.org/TR/CSS21/tables.html#border-conflict-resolution


Many thanks, Christian. I wish I knew how to just find an index for HTML element x of all the style options...

(This lets me do what I want to: no borders between subtotal rows, but borders everywhere else: so 'none' is effectively logical ORed with the other value, whereas "hidden" (completely new to me) is logical ANDed. Wonder whether that section of the spec was written by someone who understands logical AND/OR... with the "eyecatchiness" coefficient I suspect it may have been produced by the fashion department.)

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)