Hi,

Hopefully, some kind soul will be able to help a complete drupal newbie. I have three queries which are 'pecking my head' - I have tried to look this up myself but I'm getting nowhere!

1) I have downloaded Zenophile and created a sub-theme and now want to add a background. Instead of just having a colour as the background, I would like an image as the background. Could anyone tell me which .css file I have to edit to add a background image?

2) Which line in the .css file do I edit/add to? I have, in my directory, 'name of theme.css' and 'layout.css' but that's as far as I go.

3) What size does the image background have to be? I realise that this might have something to do with the width of the page, but I don't have a clue where to find the width of the page I'm afraid.

Maybe I'm asking just too many questions for a Sunday afternoon, but, I've just spent all morning getting nowhere, so would just love a little help ... just a little helping hand :)

Thanks to whoever reads my post. Here's hoping ......

Frustrated Pam

Comments

prajaktam’s picture

You can use the name of theme.css file to add the css. Or you can create one more css file with any name for eg: example.css.Then include it in your .info file of the theme.
eg:
stylesheets[all][] = example.css
Clear the cache at Home › Administer › Site configuration ›
Inside your theme directory there will be an images folder. Put the image you want to add as background inside that.
eg: body-bg.png

In the example.css file Or name of theme.css file you can add the following css
body {
background: url(images/body-bg.png) repeat;
}
Clear the cache after this and check.
Please note that if you are putting the example.css or name of theme.css files inside a css folder in your theme directory then the .info file will change to
eg:
stylesheets[all][] = css/example.css

and the style will be
body {
background: url(../images/body-bg.png) repeat;
}

You can repeat the image inside the css to spread it on the whole page.
Thanks

dizzyone’s picture

Thanks to you Prajaktam, I have just made my first background using css appear! Great instructions by the way and very much appreciated. Thanks for your time. Kind regards, Pam