[Mediawiki-l] after upgrading to Mediawiki 1.17.0 the background color of my tables has disappeared

Krinkle krinklemail at gmail.com
Thu Sep 29 18:31:41 UTC 2011

Do you mean a background-color that you specifically specified or the
default background-color (which was white).

Consider the following two examples:

{| style="background-color: red;"
! foo
| bar

{| class="wikitable"
! foo
| bar

If the above two do not have a background color (the former from the style
attribute, the latter via the "table.wikitable" css rule) on your wiki,
then please file a bug as this should still work.

If you mean the default background color for plain tables, eg:

! foo
| bar

then it is not a bug. This white background color was intentionally removed
in 1.17. It was once added to avoid lines from headings from going through
the background of a table. This was fixed in 1.17, making the
background-color hack on tables,
forms and thumbnails redundant.

If you want to style your tables, please do so by using a default style
(like class="wikitable") or by creating your own classes on the
[[MediaWiki:Common.css] page of your wiki.


" table.foobar { background: grey; } table.foobar th { background: black;
color: white; }"
which creates grey tables with a black heading.

or put the following on Common.css if you want the old behavior back from

" table { background-color: white; } "
(without the " quotes " );


On Thu, Sep 29, 2011 at 5:52 PM, Conor Glynn <conorglynn at gmail.com> wrote:

> Hi,
> After upgrading to Mediawiki 1.17.0 (from 1.15) the background color
> of my tables has disappeared, has anybody any notion how I can get
> this sorted out?
> conor
> _______________________________________________
> MediaWiki-l mailing list
> MediaWiki-l at lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/mediawiki-l

More information about the MediaWiki-l mailing list