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 |
||
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-o-border th, | ||
table.wikitable. | table.wikitable.no-o-border td { | ||
border: none !important; | border: none !important; | ||
} | } | ||
/* 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-o-border { | ||
border-collapse: collapse !important; | border-collapse: collapse !important; | ||
border-spacing: 0 !important; | border-spacing: 0 !important; | ||
} | } |
Revision as of 14:36, 11 July 2025
/* CSS placed here will be applied to all skins */ /* Target the cells (th and td) within the custom table class */ table.wikitable.no-o-border th, table.wikitable.no-o-border td { border: none !important; } /* Ensure borders are collapsed and spacing is 0 (optional, but ensures clean removal of borders) */ table.wikitable.no-o-border { border-collapse: collapse !important; border-spacing: 0 !important; }