Help:Mediawiki CSS
From Wikipedia, the free encyclopedia
This is a copy of the master help page at Meta. Do not edit this copy.
Edits will be lost in the next update from the master page. See below for more information.
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.
edit |
Wikipedia-specific help
For more about skins see Wikipedia:Customisation and Customization:Explaining_skins.
This page is a copy of the master help page at Meta (for general help information all Wikimedia projects can use), with two Wikipedia-specific templates inserted. To update the main text, edit the master help page for all projects at m:Help:Mediawiki CSS. For Wikipedia-specific issues, use Template:Ph:Mediawiki CSS (the extra text at the bottom of this page) or Template:Phh:Mediawiki CSS for a Wikipedia-specific lead (text appears at the top of this page). You are welcome to copy the exact wikitext from the master page at Meta and paste it into this page at any time. To view this page in other languages see the master page at Meta.