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

MediaWiki:Common.css

MediaWiki interface page
Revision as of 10:13, 14 August 2025 by Skycrafter (talk | contribs) (test)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
/* CSS placed here will be applied to all skins */
.infobox {
    border: 1px solid #a2a9b1;
    background-color: #f8f9fa;
    color: black;
    margin: 0.5em 0 0.5em 1em; /* Pushes the box away from text on the left */
    padding: 0.2em;
    float: right;
    clear: right;
    font-size: 90%;
    line-height: 1.4em;
    width: 24em; /* A flexible width that scales with font size */
    text-align: left;
}

/* Infobox titles */
.infobox .infobox-title {
    font-size: 125%;
    font-weight: bold;
    text-align: center;
    padding: 0.2em 0.4em;
}

/* Infobox header cells (the '!' in wikitext) */
.infobox th {
    text-align: left;
    vertical-align: top;
    padding: 0.2em 0.4em;
    white-space: nowrap; /* Prevents long headers from wrapping */
}

/* Infobox data cells (the '|' in wikitext) */
.infobox td {
    vertical-align: top;
    padding: 0.2em 0.4em;
}

/* Styling for images inside an infobox */
.infobox .infobox-image {
    text-align: center;
}

/* Styling for captions */
.infobox .infobox-caption {
    text-align: center;
    padding: 0.3em;
    font-size: 95%;
    line-height: 1.3em;
}