MediaWiki:Common.css: Difference between revisions
Appearance
Created page with "→CSS placed here will be applied to all skins: →Custom class: noborder: →Target the table element when both wikitable and noborder classes are present: table.wikitable.noborder { border: none !important; } →Target the cells (th and td) within the custom table class: table.wikitable.noborder th, table.wikitable.noborder td { border: none !important; } /* Ensure borders are collapsed and spacing is 0 (optional, but ensures clean removal of borde..." |
No edit summary |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
/* CSS placed here will be applied to all skins */ | /* CSS placed here will be applied to all skins */ | ||
/* Target the cells (th and td) within the custom table class */ | /* Target the cells (th and td) within the custom table class */ | ||
table.wikitable. | table.wikitable.no-i-border th, | ||
table.wikitable. | table.wikitable.no-i-border td { | ||
border: none | border: none; | ||
} | } | ||
/* Ensure borders are collapsed and spacing is 0 (optional, but ensures clean removal of borders) */ | /* Ensure borders are collapsed and spacing is 0 (optional, but ensures clean removal of borders) */ | ||
table.wikitable. | table.wikitable.no-i-border { | ||
border-collapse: collapse !important; | border-collapse: collapse !important; | ||
border-spacing: 0 !important; | border-spacing: 0 !important; | ||
} | |||
table.wikitable.std { | |||
float: right; | |||
margin-top: 0; | |||
margin-left: 10px; | |||
} | } |
Latest revision as of 02:01, 7 August 2025
/* CSS placed here will be applied to all skins */ /* Target the cells (th and td) within the custom table class */ table.wikitable.no-i-border th, table.wikitable.no-i-border td { border: none; } /* Ensure borders are collapsed and spacing is 0 (optional, but ensures clean removal of borders) */ table.wikitable.no-i-border { border-collapse: collapse !important; border-spacing: 0 !important; } table.wikitable.std { float: right; margin-top: 0; margin-left: 10px; }