Possible to change the width of the wiki pages?

Jump to: navigation, search

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

Ormhaugen15:35, 26 January 2012

Sure. Adda ccording rules to MediaWiki:Common.css

Subfader09:27, 27 January 2012

Thanks, But I can't find any file 'common.css' in my mediawiki folder. The closest I find is in the folder skins/common the files 'common_rtl.css' and 'commonPrint.css'. Where can I find 'common.css'? And what lines in the file will affect the width of the site?

Thanks in advance.

Ormhaugen

Ormhaugen12:05, 27 January 2012

It's a page in teh "MediaWiki" namespace. E.g. on mediawiki.org it's here.

Subfader13:48, 27 January 2012
 
 

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:

  1. 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:

  1. globalWrapper {

position:relative; font-size: 127%; width: 750px;; margin-left:auto; margin-right:auto; padding: 0; }

This should help

79.143.33.6611:43, 30 January 2012

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.

Bawolff02:20, 2 February 2012
 
 
Personal tools

Variants
Actions
Navigation
Support
Download
Development
Communication
Toolbox