MediaWiki talk:Common.css/Archives/2006

From Meta, a Wikimedia project coordination wiki

Wikitable class

Will someone with write access please add the wikitable classes from en:MediaWiki:Common.css so that the examples on Help:Table work? — Omegatron 22:13, 4 February 2006 (UTC)

/* wikitable/prettytable class for skinning normal tables */

table.wikitable,
table.prettytable {
  margin: 1em 1em 1em 0;
  background: #f9f9f9;
  border: 1px #aaaaaa solid;
  border-collapse: collapse;
}

table.wikitable th, table.wikitable td,
table.prettytable th, table.prettytable td {
  border: 1px #aaaaaa solid;
  padding: 0.2em;
}

table.wikitable th,
table.prettytable th {
  background: #f2f2f2;
  text-align: center;
}

table.wikitable caption,
table.prettytable caption {
  margin-left: inherit;
  margin-right: inherit;
}
It's been added. Thanks, Raul. — Omegatron 01:38, 27 February 2006 (UTC)

Infobox class

Can someone add the infobox CSS class from en:MediaWiki:Common.css (code is below)--

/* Infobox template style */

.infobox {
   border: 1px solid #aaaaaa;
   background-color: #f9f9f9;
   color: black;
   margin-bottom: 0.5em;
   margin-left: 1em;
   padding: 0.2em;
   float: right;
   clear: right;
}
.infobox td,
.infobox th {
   vertical-align: top;
}
.infobox caption {
   font-size: larger;
   margin-left: inherit;
}
.infobox.bordered {
   border-collapse: collapse;
}
.infobox.bordered td,
.infobox.bordered th {
   border: 1px solid #aaaaaa;
}
.infobox.bordered .borderless td,
.infobox.bordered .borderless th {
   border: 0;
}

.infobox.sisterproject {
   width: 20em;
   font-size: 90%;
}

Thanks! —Locke Coletc 23:44, 12 April 2006 (UTC)

Implementation problem with border-collapse property

Generally this property is not fully implemented in many browsers. I use Firefox1.5 mostly and check with Opera9 and IE6. In large "wikitables", the vertical lines don't always display in Firefox fully. I have no problem with the others. I was trying to make a style within a table without the border-collapse property, but can't make cells inherit the border properties of the table. Am I permitted to create a new style in MediaWiki:Common.css? Hoverfish 23:39, 21 November 2006 (UTC)

I've only seen the lines disappear when the table has errors. Make sure every row has the same number of columns. This is a bug with Mozilla, anyway, not a problem with the CSS of the site. — Omegatron 14:35, 22 November 2006 (UTC)
Also, the table in en:2005_in_film#Deaths looks fine to me, in Firefox 2.0 — Omegatron 14:42, 22 November 2006 (UTC)