← All examples

CSS Look & feel wikipedia.org

Wikipedia: cleaner tables

Gives article tables alternating row stripes and soft borders so data is easier to follow.

Code to copy

/* Cleaner zebra-striped wikitables */
.mw-parser-output table.wikitable {
  border-collapse: collapse !important;
  border: 1px solid #d0d4d8 !important;
}
.mw-parser-output table.wikitable th {
  background: #eef1f4 !important;
}
.mw-parser-output table.wikitable td,
.mw-parser-output table.wikitable th {
  border: 1px solid #e3e6e9 !important;
  padding: 0.5em 0.7em !important;
}
.mw-parser-output table.wikitable tr:nth-child(even) td {
  background: #f7f8fa !important;
}

How to use this example

  1. Copy the code with the button above.
  2. Install JustZix (2 minutes) and open the extension on the target page.
  3. Add a new rule matching that page.
  4. Paste the code into the rule's CSS panel and save — the effect appears instantly.

Rate this example

No ratings yet — be the first.

Does this example work?

Snippets are useless without somewhere to paste them.

JustZix takes 2 minutes to install and runs your code on every matching page. No account, no payment.

Download free See use cases