Peter_UK Posted January 16, 2011 Share Posted January 16, 2011 Hi, I am just customizing my theme, and I have run in to a bit of a problem.I would like to ad a background image to the template but in a way that it shows on the sides and under the mainpage area, but not in the middle of the page.Please look at the pic attached to see what I mean.Is there a way to do this?Any advice welcome, and thanks in advancePeter Link to comment Share on other sites More sharing options...
rocky Posted January 16, 2011 Share Posted January 16, 2011 Just put the background on the body section in global.css and set a background colour on the #page section. Link to comment Share on other sites More sharing options...
Peter_UK Posted January 16, 2011 Author Share Posted January 16, 2011 Hi Rocky,Worked a treat, thanks very muchPeter Link to comment Share on other sites More sharing options...
nuclearholocausto Posted January 28, 2011 Share Posted January 28, 2011 Will an image background be the same way? What should be the correct path for it? Should it have an absolute path like a complete URL? Link to comment Share on other sites More sharing options...
rocky Posted January 28, 2011 Share Posted January 28, 2011 You should put the background image in the themes//img, then use a relative URL in themes//css/global.css like this: body { background: url(../img/background.jpg); } You can add no-repeat, repeat-x or repeat-y depending on whether it is a non-repeatable image, repeats only horizontally or repeats only vertically. Link to comment Share on other sites More sharing options...
nuclearholocausto Posted January 28, 2011 Share Posted January 28, 2011 Awesome! Thanks a lot! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now