More actions
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
/* Ensure all wikitables are centered */ | /* Ensure all wikitables are centered and border-collapse is set to separate */ | ||
body .mw-body table.wikitable { | |||
body .mw-body .wikitable { | border-collapse: separate !important; | ||
margin-left: auto !important; | margin-left: auto !important; | ||
margin-right: auto !important; | margin-right: auto !important; | ||
Line 7: | Line 7: | ||
display: table !important; | display: table !important; | ||
box-sizing: border-box !important; | box-sizing: border-box !important; | ||
} | } | ||
/* Optional: Center-align the text within the table */ | /* Optional: Center-align the text within the table */ |
Revision as of 21:42, 12 November 2024
/* Ensure all wikitables are centered and border-collapse is set to separate */ body .mw-body table.wikitable { border-collapse: separate !important; margin-left: auto !important; margin-right: auto !important; width: 600px !important; /* Specify the width as needed */ display: table !important; box-sizing: border-box !important; } /* Optional: Center-align the text within the table */ .wikitable td, .wikitable th { text-align: center !important; } /* Forcing the table to center by wrapping it in a div */ body .wikitable-wrapper { display: flex; justify-content: center; width: 100%; } body .wikitable-wrapper .wikitable { margin: 0 !important; width: 600px !important; }