Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

MediaWiki:Common.css: Difference between revisions

MediaWiki interface page
No edit summary
No edit summary
Line 32: Line 32:
body .wikitable-wrapper .wikitable {
body .wikitable-wrapper .wikitable {
     margin: 0 !important;
     margin: 0 !important;
}
/* Ensure all wikitables are centered */
body .mw-body .wikitable {
    margin-left: auto !important;
    margin-right: auto !important;
    width: 600px !important;
    display: table !important;
}
/* Additional specificity if the theme uses more classes */
body .mw-body .wikitable {
    margin-left: auto !important;
    margin-right: auto !important;
    width: 600px !important;
    display: table !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;
}
}

Revision as of 21:26, 12 November 2024

/* Ensure all wikitables are centered */
.wikitable {
    margin-left: auto !important;
    margin-right: auto !important;
    width: 600px !important; /* Specify the width as needed */
}

/* Just in case there are specific classes applied */
table.wikitable {
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Optional: Center-align the text within the table */
.wikitable td, .wikitable th {
    text-align: center !important;
}

/* Ensure all wikitables are centered */
body .wikitable {
    margin-left: auto !important;
    margin-right: auto !important;
    width: 600px !important;
}

/* Forcing the table to center by wrapping it in a div */
body .wikitable-wrapper {
    display: flex;
    justify-content: center;
}

body .wikitable-wrapper .wikitable {
    margin: 0 !important;
}
/* Ensure all wikitables are centered */
body .mw-body .wikitable {
    margin-left: auto !important;
    margin-right: auto !important;
    width: 600px !important;
    display: table !important;
}

/* Additional specificity if the theme uses more classes */
body .mw-body .wikitable {
    margin-left: auto !important;
    margin-right: auto !important;
    width: 600px !important;
    display: table !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;
}