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 1: Line 1:
/* Ensure all tables are centered */
/* Ensure all wikitables are centered */
table.wikitable {
.wikitable {
     margin-left: auto !important;
     margin-left: auto !important;
     margin-right: auto !important;
     margin-right: auto !important;
    width: 600px !important; /* Specify the width as needed */
}
}


/* Specific centering for the class 'wikitable' */
/* Just in case there are specific classes applied */
.wikitable {
table.wikitable {
     margin-left: auto !important;
     margin-left: auto !important;
     margin-right: auto !important;
     margin-right: auto !important;
}
/* Optional: Center-align the text within the table */
.wikitable td, .wikitable th {
    text-align: center !important;
}
}

Revision as of 16:30, 27 October 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;
}