Styling tables |
Styling tables |
Brian Chandler |
Sep 18 2021, 11:11 AM
Post
#1
|
Jocular coder Group: Members Posts: 2,460 Joined: 31-August 06 Member No.: 43 |
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... |
Christian J |
Sep 18 2021, 06:07 PM
Post
#2
|
. Group: WDG Moderators Posts: 9,656 Joined: 10-August 06 Member No.: 7 |
I think this is the relevant section: https://www.w3.org/TR/CSS21/tables.html#bor...lict-resolution
|
Brian Chandler |
Sep 19 2021, 11:44 AM
Post
#3
|
Jocular coder Group: Members Posts: 2,460 Joined: 31-August 06 Member No.: 43 |
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.) |
Lo-Fi Version | Time is now: 26th April 2024 - 08:46 AM |