MediaWiki:Common.css: Difference between revisions
MediaWiki interface page
More actions
No edit summary |
No edit summary |
||
| Line 6: | Line 6: | ||
width: 600px !important; /* Specify the width as needed */ | width: 600px !important; /* Specify the width as needed */ | ||
display: table !important; | display: table !important; | ||
box-sizing: border-box; | box-sizing: border-box !important; | ||
border-collapse: separate !important; /* Ensure border-collapse is set to separate */ | |||
} | } | ||
| Line 24: | Line 25: | ||
margin: 0 !important; | margin: 0 !important; | ||
width: 600px !important; | width: 600px !important; | ||
} | } | ||
Revision as of 21:37, 12 November 2024
/* Ensure all wikitables are centered */
.wikitable,
body .mw-body .wikitable {
margin-left: auto !important;
margin-right: auto !important;
width: 600px !important; /* Specify the width as needed */
display: table !important;
box-sizing: border-box !important;
border-collapse: separate !important; /* Ensure border-collapse is set to separate */
}
/* 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;
}