Forum:Having Trouble with Background Image?

I'm not having any luck with CSS so I'm just going to apply it directly to the div. How do you make a background-image on a div or a table?

hello world! Background-image: http://vampirewars.wikia.com/wiki/File:Infobox_Image_Background.jpeg

-Adam weiler 12:15, March 20, 2012 (UTC)


 * The background image CSS property will not work when placed inside elements on individual pages. It only works when the code is placed in one of the CSS pages that affect the wiki. Judging from the information here, I think the problem is that you are trying to use the relative path of the images instead of the full url location. Try using the code here instead. --Gardimuer { ʈalk } 14:51, March 20, 2012 (UTC)

I've updated the MediaWiki:Common.css to use a relative path, but it doesn't seem be working still:

hello world!

Is there a way to directly apply the image without using CSS? This doesn't work but maybe something like it?

hello world! -Adam weiler 22:14, March 21, 2012 (UTC)


 * The code is working. Wikia just hasn't updated the cached CSS files yet, so the changes aren't being sent to your browser. When you put a change in the Common.css it often takes a day or two for the changes to appear in the Wikia/Oasis skin. However, the changes are already working in the Monobook skin: example
 * If you want to cut down on the lag from caching issues, you could just put the code in the Wikia.css instead of the Common.css.
 * The Common.css is supposed to affect all skins (both the Wikia/Oasis skin and the Monobook skin), but Wikia foolishly chooses not to import it into the Wikia/Oasis skin by default, so you have to manually add the line of code that will import it, which you did. Unfortunately, importing it with that method causes a lag before updates are put into effect. --Gardimuer { ʈalk } 00:46, March 22, 2012 (UTC)