Jump to content

Help:Mediawiki CSS

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Omniplex (talk | contribs) at 19:02, 3 April 2006 (TRANSWIKI from Meta). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

Template:H:h

MediaWiki:Common.css is the css page for all skins.

See Help:User style for the css file and the css wiki page for each skin of a project, as well as the user css pages.

Example of sitewide css wiki page

code {

font-weight: bold;

}


/*<nowiki><pre><nowiki>*/
code {
   font-weight: bold;
}
/*

</nowiki></nowiki>*/

results in:

/*

*/
code {
   font-weight: bold;
}
/*

*/

Note that <nowiki> and </nowiki> are used to avoid interpreting what is in between as wikitext. In particular this preserves lay-out, and gives a uniform font regardless of lines having leading spaces. In turn these codes are put within css comment delimiters /* and */. This causes a rendering with empty css comments at the top and bottom.


Template:H:f