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

MediaWiki:Tables.css

MediaWiki interface page
Revision as of 19:11, 18 November 2025 by Stevium (talk | contribs)
(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)
  • Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* See also: [[MediaWiki:Vector-2022.css]] for table overflow fix specific to
   the Vector (2022) skin */
body:not(.ns-special) .wikitable, .article-table {
    th {
        border: none !important;
        background-color: var(--background-color-4) !important;
        text-align: left;
    }
    
    td {
        border: none !important;
        background-color: var(--background-color-1);
    }
    
    tr:nth-child(odd) td {
        background-color: var(--background-color-2);
    }
}

.article-table th {
    padding: 0.5em 0.75em !important;
}

.article-table td {
    padding: 0.25em 0.75em !important;
}