"Fomafix" posted a comment on MediaWiki.r107673. URL: http://www.mediawiki.org/wiki/Special:Code/MediaWiki/107673#c28727
Commit summary for MediaWiki.r107673: + complementary <tbody> involved rules in wikitable definitions for browsers which add <tbody> not only virtually (follow-up to r107669) Fomafix's comment: The selector can be shortened by [http://www.w3.org/TR/css3-selectors/#universal-selector universal selector]: <syntaxhighlight lang="css"> table.wikitable > tr > th, table.wikitable > tr > td, table.wikitable > * > tr > th, table.wikitable > * > tr > td { border: 1px #aaa solid; padding: 0.2em; } table.wikitable > tr > th, table.wikitable > * > tr > th { background-color: #f2f2f2; text-align: center; } </syntaxhighlight> Example table: <pre> {| class="wikitable sortable" |- ! Head |- | Body |- ! Foot |} </pre> {| class="wikitable sortable" |- ! Head |- | Body |- ! Foot |} _______________________________________________ MediaWiki-CodeReview mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-codereview
