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 15: Line 15:
.wikitable td, .wikitable th {
.wikitable td, .wikitable th {
     text-align: center !important;
     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;
}
}

Revision as of 21:24, 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;
}