MyBB Community Forums

Full Version: Adding a background
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
how can i add a background image to the default template of MyBB. I know its to do with the .CSS file but for the love of god were is itToungue
it's in the global.css file (in the theme style settings)
change the value of the body background, and #container background.
(2009-03-15, 06:18 PM)pepotiger Wrote: [ -> ]it's in the global.css file (in the theme style settings)
change the value of the body background, and #container background.

so instead of it being background #000 it would be background image/bg.gif yeah and the same in container
Templates&Style/Your Theme/global.css/BlackGround/ add; #fff url(http://www.yourblackground.com.png)
(2009-03-15, 06:24 PM)Iceman II Wrote: [ -> ]Templates&Style/Your Theme/global.css/BlackGround/ add; #fff url(http://www.yourblackground.com.png)

so your saying i have to enter the full url of my image to have it as a back ground
if it in a sub folder under your forum root folder you can use this
background: #fff url(sub_folder/my_image.gif);
where #fff it's the color hex code, and sub_folder/my_image.gif it's the path where your background image is located.
(2009-03-15, 06:26 PM)alan1979 Wrote: [ -> ]
(2009-03-15, 06:24 PM)Iceman II Wrote: [ -> ]Templates&Style/Your Theme/global.css/BlackGround/ add; #fff url(http://www.yourblackground.com.png)

so your saying i have to enter the full url of my image to have it as a back ground

Yes, see my forum? (www.moviemania-pt.com)

I use the same way....
Templates&Style/Your Theme/global.css/BlackGround/ add; #fff url(http://img17.imageshack.us/img17/6729/fundok.gif)
(2009-03-15, 06:30 PM)pepotiger Wrote: [ -> ]if it in a sub folder under your forum root folder you can use this
background: #fff url(sub_folder/my_image.gif);
where #fff it's the color hex code, and sub_folder/my_image.gif it's the path where your background image is located.

i made a mistake. can some one tell me the default colour for #container please as i edited the wrong box.
the default background colour is #fff
would someone mind telling me why I would need to insert the color code in this case #fff before the url(sub_folder/my_image.gif);