→Redundant CSS: Reply |
→Redundant CSS: Reply |
||
| Line 10: | Line 10: | ||
:::The in-line CSS falls under the <nowiki><th> tag, not the <td></nowiki> tag, and the CSS block at the top of the chart only applies to the <nowiki><td></nowiki> tags. Therefore it is not redundant. | :::The in-line CSS falls under the <nowiki><th> tag, not the <td></nowiki> tag, and the CSS block at the top of the chart only applies to the <nowiki><td></nowiki> tags. Therefore it is not redundant. | ||
:::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) | |||