More actions
No edit summary |
No edit summary |
||
Line 7: | Line 7: | ||
box-sizing: border-box !important; | box-sizing: border-box !important; | ||
} | } | ||
/* Ensure all wikitables are centered and border-collapse is set to separate */ | |||
body.skin-citizen .mw-body .content table.wikitable { | |||
border-collapse: separate !important; | |||
margin-left: auto !important; | |||
margin-right: auto !important; | |||
display: table !important; | |||
box-sizing: border-box !important; | |||
} | |||
/* Make sure the text within the table is centered */ | |||
body.skin-citizen .mw-body .content table.wikitable td, | |||
body.skin-citizen .mw-body .content table.wikitable th { | |||
} | |||
/* Make sure the text within the table is centered */ | /* Make sure the text within the table is centered */ |
Revision as of 22:10, 12 November 2024
/* Ensure all wikitables are centered and border-collapse is set to separate */ body .mw-body .content table.wikitable { border-collapse: separate !important; margin-left: auto !important; margin-right: auto !important; display: table !important; box-sizing: border-box !important; } /* Ensure all wikitables are centered and border-collapse is set to separate */ body.skin-citizen .mw-body .content table.wikitable { border-collapse: separate !important; margin-left: auto !important; margin-right: auto !important; display: table !important; box-sizing: border-box !important; } /* Make sure the text within the table is centered */ body.skin-citizen .mw-body .content table.wikitable td, body.skin-citizen .mw-body .content table.wikitable th { } /* Make sure the text within the table is centered */ .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; }