Possible to change the width of the wiki pages?
My wiki is now displayed across the whole screen. The rest of my site is 750px wide, centered. Is it possible to have the wiki pages displayed in the same width as the rest of the site? Regards Ormhaugen http://osteroy-sogelag.org/mediawiki Mediawiki 1.15.1 PHP 5.2.11 Mysql 5.051a
Sure. Adda ccording rules to MediaWiki:Common.css
Hi,
Try going to the 'skins' folder, open the folder of the current skin and look for the .css file for that skin. Once done, search for the following code there:
- globalWrapper {
font-size: 127%; width: 100%; margin: 0; padding: 0;}
This code makes the page cover the whole screen. Change it to smth like this:
- globalWrapper {
position:relative; font-size: 127%; width: 750px;; margin-left:auto; margin-right:auto; padding: 0; }
This should help
Please do not do what 79.143.33.66 suggested. This is not a supported way to style mediawiki and will break next time you upgrade. As subfader said above, there are certain special pages on a wiki where you can put css ( mediawiki:Common.css ) which is the recommended way to add custom styles to your wiki.