→Redundant CSS: Reply |
→Redundant CSS: Reply |
||
| Line 5: | Line 5: | ||
:Thanks for the heads up. All the charts that I made for the navigators were initially copied straight from the [[Wormhole attributes]] page. I liked how that chart was set up and wanted to copy it as closely as possible. That chart had some CSS attached to it when I pulled it, so I kept that as is and didn't touch it. | :Thanks for the heads up. All the charts that I made for the navigators were initially copied straight from the [[Wormhole attributes]] page. I liked how that chart was set up and wanted to copy it as closely as possible. That chart had some CSS attached to it when I pulled it, so I kept that as is and didn't touch it. | ||
:If that CSS doesn't actually do anything, I can remove it. [[User:Ashling Solette|Ashling Solette]] ([[User talk:Ashling Solette|talk]]) 21:55, 23 July 2025 (UTC) | :If that CSS doesn't actually do anything, I can remove it. [[User:Ashling Solette|Ashling Solette]] ([[User talk:Ashling Solette|talk]]) 21:55, 23 July 2025 (UTC) | ||
: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 <nowiki>[[Safe_spots#Making_A_Safe_Spot_Off_D-Scan_Using_Navigators|safe spots page]]</nowiki> (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) | |||
Revision as of 23:00, 23 July 2025
Redundant CSS
Hi, I don't know how familiar you are with the use of {{#CSS:}} and CSS in general but you have a bit of redundant CSS coding in the page. The position of {{#CSS:}} in the page has no meaning other than deciding in which order the CSS is applied. Basically the earlier in the page is applied before, and when applicable, overwritten by later entries. In this case you have two, identical, bits of CSS causing the first one to do nothing because the second one is applied later and "overwriting" the first. This is of course without any visible difference because the content is identical. But if for example the first bit had the padding-right set to 2em that would be overwritten by the 1em from the second. -- Evon R'all (talk) 07:49, 19 July 2025 (UTC)
- Thanks for the heads up. All the charts that I made for the navigators were initially copied straight from the Wormhole attributes page. I liked how that chart was set up and wanted to copy it as closely as possible. That chart had some CSS attached to it when I pulled it, so I kept that as is and didn't touch it.
- If that CSS doesn't actually do anything, I can remove it. Ashling Solette (talk) 21:55, 23 July 2025 (UTC)
- 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. Ashling Solette (talk) 23:00, 23 July 2025 (UTC)