Difference between revisions of "MediaWiki:Common:css"

Line 1: Line 1:
/* Target the specific image and ensure it retains its original dimensions */
+
/* Use highly specific selectors to override any conflicting rules */
<!--.mw-parser-output img[src*="Top_teal_bar03.png"] {
 
    width: auto !important;
 
    max-width: none !important;
 
    height: auto !important;
 
}
 
-->
 
/* Ensure specific image retains its original dimensions */
 
 
body.advanced-toc .container #content .mw-parser-output img[src*="Top_teal_bar03.png"] {
 
body.advanced-toc .container #content .mw-parser-output img[src*="Top_teal_bar03.png"] {
 
     width: 1082px !important;
 
     width: 1082px !important;
Line 14: Line 7:
 
     box-sizing: content-box !important;
 
     box-sizing: content-box !important;
 
     vertical-align: initial !important;
 
     vertical-align: initial !important;
     display: block !important; /* Optional: To ensure it takes full width without affecting inline elements */
+
     display: block !important; /* Optional: Ensure it takes full width without affecting inline elements */
 
}
 
}

Revision as of 04:34, 29 May 2024

/* Use highly specific selectors to override any conflicting rules */ body.advanced-toc .container #content .mw-parser-output img[src*="Top_teal_bar03.png"] {

   width: 1082px !important;
   height: 246px !important;
   max-width: none !important;
   max-height: none !important;
   box-sizing: content-box !important;
   vertical-align: initial !important;
   display: block !important; /* Optional: Ensure it takes full width without affecting inline elements */

}