The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Styling tables
Brian Chandler
post 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...
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post Sep 18 2021, 06:07 PM
Post #2


.
********

Group: WDG Moderators
Posts: 9,628
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
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Brian Chandler
post Sep 19 2021, 11:44 AM
Post #3


Jocular coder
********

Group: Members
Posts: 2,460
Joined: 31-August 06
Member No.: 43



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


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.)
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 19th March 2024 - 04:46 AM