Jump to content

[SOLVED] Background help and advice needed please.


Recommended Posts

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 main
page 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 advance

Peter

36894_RBSUvYD0lKPryJxaaC3h_t

Link to comment
Share on other sites

  • 2 weeks later...

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...