Customizing a MediaWiki "skin"

From Tech-Help

Jump to: navigation, search

Simple changes to an existing "skin"

Each "skin" for MediaWiki has a CSS stylesheet to define the basic "look" of the page. The default is 'monobook'. If all you want to do is change the background, find this section in the main.css file:

body {
	font: x-small sans-serif;
	background: #f9f9f9 url(headbg.jpg) 0 0 no-repeat;
	color: black;
	margin: 0;
	padding: 0;
}

This is a screenshot of the various files used in the default 'monobook' skin:

Image:Monobook skin files.png

  • You can change the url to a use a different background image. The default directory is the same one, so "headbg.gif" is in the same directory as the main.css file, but if you are using an image from outside the directory of the skin, start with a forward slash (the website root) and specify the complete path to the image file, for example /images/backgd.gif
  • If you leave in "0 0 no-repeat", the background will appear only once, with a point of original at the very top left. Delete this and you will the background image will tile.
Personal tools
Help