Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Sign In
Not a member yet? Click here to register.

Site Background Image

Ok so I have been trying to change the background on the theme. As long as I change colors I am ok. But when I try to do an image it just shows a white background. Any Ideas.

Here is the original code:

CodeDownload  
body {    
margin:0;    
padding:0;    
width:100%;    
color:#656565;    
font:normal 12px/1.2em  "Open Sans", Helvetica, Arial, sans-serif;
letter-spacing:0.4px;
background:#717171;
}



Now I tried doing this:

CodeDownload  
body {    
margin:0;    
padding:0;    
width:100%;    
color:#656565;    
font:normal 12px/1.2em  "Open Sans", Helvetica, Arial, sans-serif;
letter-spacing:0.4px;
background-image:url(images/mbackground.png);
}



But like I said before, it just gives me a white background.
First make sure the image path is your_theme/images/mbackground.png

If it is a small image maybe you need to background-repeat it you can use...

CodeDownload  
background-image:url(images/mbackground.png);
background-repeat:repeat;



The background image will be repeated vertically and horizontally.

Or if you want it to repeat just vertically use..

CodeDownload  
background-repeat: repeat-y;



Or Horizontally just use...

CodeDownload  
background-repeat: repeat-x;



Hope that helps.
Fixed
Thread Information
Author
Replies
3 posts
Views
1377 times
Last Post
Last updated on 6 years ago
You can view all discussion threads in this forum.
You cannot set up a bounty in this discussion thread.
You can start a new discussion thread in this forum.
You cannot reply in this discussion thread.
You cannot start on a poll in this forum.
You cannot upload attachments in this forum.
You can download attachments in this forum.
You cannot up or down-vote on the post in this discussion thread.
Users who participated in discussion: Craig, Vyper69