Forum:Site and Page Background CSS

Is there any css to change the background of the site without disturbing the background of the page? Also is there any way to change the page background without disturbing the site background?--Andromeda Vadum 01:10, March 13, 2012 (UTC)


 * The background class defines the site background while the body's background class defines the page background. See MediaWiki:Monobook.css for an example.--


 * Cant I just get the code for the page bg and site bg please?Andromeda Vadum 17:19, March 14, 2012 (UTC)


 * If you want to change the background for an entire wiki, you would use the following code in the MediaWiki:Common.css or MediaWiki:Wikia.css on the wiki in question:

body { background: url(" full url location of the image ") repeat or no-repeat attachment x-position y-position background color code or transparent ; }
 * You would replace all of the italic text above with the appropriate code to do what you want. For example, this is the background code used by Community Central:

body { background: url("http://images4.wikia.nocookie.net/__cb34/central/images/5/50/Wiki-background") repeat scroll center top #A5B5C5; }
 * See this page for more details about using the CSS background property.
 * I'm not sure what exactly you mean by "page background". You might mean something like this where they have a background image for just the part of the page that contains the article, separate from the main background image of the site. Doing that is a slightly more complicated, because Wikia's html structure for page backgrounds is ridiculous. You would use the following code, once again replacing the italic parts with what you need.

.WikiaPage { background: url(" full url location of the image ") repeat or no-repeat attachment x-position y-position background color code or transparent ; } .WikiaPage .WikiaPageBackground{ background: none repeat scroll 0 0 transparent; }
 * --Gardimuer { ʈalk } 19:20, March 16, 2012 (UTC)