MyBB Community Forums

Full Version: background image not working
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
In my global.css the following code:

body {
  	background: #efefef url(images/bg.gif) repeat;
  	background: #fff;
	color: #333;
	text-align: center;
	line-height: 1.4;
	margin: 0;
	font-family: Tahoma, Verdana, Arial, Sans-Serif;
	font-size: 13px;
	overflow-y: scroll;
}
But there's no background-image appearing (like this MyBB forum); just a white surface.
In 1.6 it worked with that code; what do I have to change to get a background instead of a white background?
I think you shouldn't set background twice.
Try this:
body {
    background: #efefef url(images/bg.gif) repeat;
    color: #333;
    text-align: center;
    line-height: 1.4;
    margin: 0;
    font-family: Tahoma, Verdana, Arial, Sans-Serif;
    font-size: 13px;
    overflow-y: scroll;
} 
(2014-09-24, 04:32 PM)fonta Wrote: [ -> ]I think you shouldn't set background twice.
Try this:

body {
    background: #efefef url(images/bg.gif) repeat;
    color: #333;
    text-align: center;
    line-height: 1.4;
    margin: 0;
    font-family: Tahoma, Verdana, Arial, Sans-Serif;
    font-size: 13px;
    overflow-y: scroll;
} 

No, that doesn't work either.........
Put the background image in:


#content
I'm affraid that I don't know what you meen........
Can you give us a url to your site?
(2014-09-24, 08:01 PM)wageral Wrote: [ -> ]I'm affraid that I don't know what you meen........

Sorry, should have been more precise, I have made a sequence of images to show the steps from the admin panel, I have made it clear for anyone else wondering who doesn't know how to get to the styles variables.

Step 1
[attachment=32594]

Step 2
[attachment=32595]

Step 3
[attachment=32596]

Step 4
[attachment=32597]

Step 5
[attachment=32598]

Step 6
[attachment=32599]


Remember to click 'Save Changes' after you had entered your background image variable, hope this helps.  Smile
(2014-09-25, 08:40 AM)Kirk Fitzgerald Wrote: [ -> ]
(2014-09-24, 08:01 PM)wageral Wrote: [ -> ]I'm affraid that I don't know what you meen........

Sorry, should have been more precise, I have made a sequence of images to show the steps from the admin panel, I have made it clear for anyone else wondering who doesn't know how to get to the styles variables.

Step 1


Step 2


Step 3


Step 4


Step 5


Step 6



Remember to click 'Save Changes' after you had entered your background image variable, hope this helps.  Smile

I tried that but also no results....
There's still no background Undecided
Can you provide a link to the site where this is not working please.
Guess it's the url on his profile page,
Background IS working.
http://i.imgur.com/CqoOtLm.jpg
Pages: 1 2