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 7: Line 7:
:Ok, I'm struggling to find this redundant CSS. I'm going through the CSS line by line and removing each part to see what changes on the chart. And every piece that I take out makes a visible change to the chart. This is including the in-line CSS for the "Sum Of All Warps" footer, which is the only in-line CSS in the chart (e.g. if you remove the "padding-right: 1em;", it moves the text further to the right - out of line with the rest of the chart).
:Ok, I'm struggling to find this redundant CSS. I'm going through the CSS line by line and removing each part to see what changes on the chart. And every piece that I take out makes a visible change to the chart. This is including the in-line CSS for the "Sum Of All Warps" footer, which is the only in-line CSS in the chart (e.g. if you remove the "padding-right: 1em;", it moves the text further to the right - out of line with the rest of the chart).
:As far as I am aware, the CSS is identical to the chart I added to the [[Safe_spots#Making_A_Safe_Spot_Off_D-Scan_Using_Navigators|safe spots page]] (except that this chart is sortable and that one isn't), so if you can edit that page to show what piece of CSS is redundant, I can copy that work over to this page. [[User:Ashling Solette|Ashling Solette]] ([[User talk:Ashling Solette|talk]]) 23:00, 23 July 2025 (UTC)
:As far as I am aware, the CSS is identical to the chart I added to the [[Safe_spots#Making_A_Safe_Spot_Off_D-Scan_Using_Navigators|safe spots page]] (except that this chart is sortable and that one isn't), so if you can edit that page to show what piece of CSS is redundant, I can copy that work over to this page. [[User:Ashling Solette|Ashling Solette]] ([[User talk:Ashling Solette|talk]]) 23:00, 23 July 2025 (UTC)
::OK. let me see if I can explain this a bit more clearer. On the page there are 2 places where there is a <nowiki>{{#CSS}}</nowiki> block. Coincidentally these 2 blocks have identical content. The position of a <nowiki>{{#CSS}}</nowiki> block has no relation as to where on the page the CSS is valid. Any CSS is valid on the whole page. The only thing that the position is valid for is that by identical selectors the last one loaded is the one who's content is applied, there are some more things which might influence this but for this situation they do not apply. So what is in the second block will "overwrite" what is in the first block. Because the content from the 2 blocks is identical this effectively makes 1 of the blocks redundant. So in this case only one of the blocks is needed. For the TL;DR [https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_cascade/Cascade Introduction to the CSS cascade] might be a good starting point. -- [[User:Evon R'al|Evon R'all]] ([[User talk:Evon R'al|talk]]) 09:40, 24 July 2025 (UTC)