Portal:Tasks/5
Title | Fix Clear right CSS issues |
---|---|
Status | Initiated |
Lead | |
Link | Portal:Tasks/5 |
not working
https://saintapedia.org/wiki/MediaWiki:Common.css
there could be several reasons:
Template Syntax Issue: If this code is part of a template, ensure that the template syntax is correctly interpreted. MediaWiki's parser needs to interpret both correctly for this to work. If this snippet is directly in MediaWiki:Common.css, this syntax won't be parsed as a template parameter because CSS pages do not parse template parameters in the same way. CSS Specificity and Overriding Styles: It's possible that other CSS rules are overriding this style. If there's a more specific rule or one with !important elsewhere in your CSS, it might prevent this clear property from taking effect. HTML Structure: If the div in question is not placed correctly in the HTML or if surrounding elements do not properly use floating, then clearing floats won't have a visible effect. Ensure that elements before this div are indeed floated, and this div is where you intend to clear those floats. MediaWiki Parsing: MediaWiki does some processing on CSS, especially when it's added via the MediaWiki:Common.css.
If there's an issue with how MediaWiki is parsing or applying the CSS:
Check for Errors: Look at the browser's console for any CSS errors. Sometimes, a small syntax error elsewhere can prevent styles from being applied. Direct Application: Try applying the style directly in the browser's developer tools to see if it works. If it does, the issue might be how the CSS is being included or parsed by MediaWiki.
Cache Issues: MediaWiki heavily caches CSS. After editing MediaWiki:Common.css, you might need to purge the cache or bypass your browser cache (often by doing a hard refresh, Ctrl+F5 or similar).
Configuration or Extension Conflict: There might be a MediaWiki extension or configuration setting that alters how CSS is handled or parsed. Check if any extensions modify CSS behavior or if there's a configuration like $wgAllowUserCss or similar that might affect how styles are applied.
Check the Rendered HTML: See if the div with this style is even being outputted where expected in the final HTML.
Isolation: Try isolating this CSS in a user subpage or a test wiki to see if it's a site-wide issue or something specific to how it's being included or overridden in MediaWiki:Common.css.