Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

User talk:Ashling Solette/jsn-salt: Difference between revisions

Discussion page of User:Ashling Solette/jsn-salt
 
Line 11: Line 11:
:::Also, I have not figured out a clean way to reference the last <nowiki><tr></nowiki> containing a <nowiki><th> in the CSS block, so it will stay in-line for the time being. I suppose tr:last-child will work in this instance, but that would not work if you wanted subtotals partway down the chart - which would have <th> in the middle somewhere that would need different CSS from the <th> at the top of the chart.</nowiki> [[User:Ashling Solette|Ashling Solette]] ([[User talk:Ashling Solette|talk]]) 22:11, 2 August 2025 (UTC)
:::Also, I have not figured out a clean way to reference the last <nowiki><tr></nowiki> containing a <nowiki><th> in the CSS block, so it will stay in-line for the time being. I suppose tr:last-child will work in this instance, but that would not work if you wanted subtotals partway down the chart - which would have <th> in the middle somewhere that would need different CSS from the <th> at the top of the chart.</nowiki> [[User:Ashling Solette|Ashling Solette]] ([[User talk:Ashling Solette|talk]]) 22:11, 2 August 2025 (UTC)
:::Ok, I think I figured it out - I was looking at each chart individually, but not the page as a whole, so I was missing the big picture view. Sorry if my last comment sounded a bit sharp. [[User:Ashling Solette|Ashling Solette]] ([[User talk:Ashling Solette|talk]]) 23:29, 2 August 2025 (UTC)
:::Ok, I think I figured it out - I was looking at each chart individually, but not the page as a whole, so I was missing the big picture view. Sorry if my last comment sounded a bit sharp. [[User:Ashling Solette|Ashling Solette]] ([[User talk:Ashling Solette|talk]]) 23:29, 2 August 2025 (UTC)
::::No problem. I always have some difficulty explaining stuff in writing. Thing with CSS is you can never look at one bit in isolation and be sure what happens; that's the cascading part in the name. As for referencing the "last" &lt;th> as you mentioned, there is inline (last resort for me) and tr:last-child, but that is a bit more complicated than just tr:last-child, as not all the &lt;th> are the same. But there is also the option to use a class. I hope you don't mind too much, but I did a proof of concept on combination 1. As the class can be placed wherever you want, it will work for a subtotal mid-table too. As a side note: a subtotal mid-table will probably get in trouble with the sorting part. -- [[User:Evon R'al|Evon R'all]] ([[User talk:Evon R'al|talk]]) 10:21, 3 August 2025 (UTC)