Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • munders Friend
    #136077

    Does anyone know how to add a simple background image to an Edenite templated site?

    I have a simple 1 x 2000 pixel vertical graphic that i want to add so that it tiles horizontally. This is very common in many websites.

    I do not know if I need to edit the template.css file or another.

    Please supply the code i need to add and the line number. My graphic is called bgline.gif.

    Thank you very much, i appreciate it.

    scotty Friend
    #281835

    Open template.css and on line 25 find…

    body#bd {
    background: #FFFFFF none repeat scroll 0 0;
    color: #515756;
    }

    …and change to…

    body#bd {
    background: transparent url(../images/bgline.gif) repeat-x scroll 0 0;
    color: #515756;
    }

    This may give undesirable results as a lot of the main part of the template shows through to the background.

    If this is the case and you want to keep the main area with a white background then find line 481…

    #ja-wrapper {
    margin: 0 auto;
    padding: 0 0 40px;
    width: 950px;
    }

    …and change to…

    #ja-wrapper {
    background: #FFFFFF none repeat scroll 0 0;
    margin: 0 auto;
    padding: 0 0 40px;
    width: 950px;

    }

    munders Friend
    #281956

    Didn’t work Scotty. I even tried an http link to the graphic.

    Any ideas?

    scotty Friend
    #281967

    It is the right method Munders. The image should be in your template images folder NOT your main images folder.

    Get the full url or your image and open it in a browser to see that it is displaying.

    munders Friend
    #282010

    I added the link as mentioned but still no background image.

    Please note that I have duplicated the graphic into 4 image folders inc top level.

    Here’s the code i added last…

    body#bd {
    background: transparent url(http://www.mysite.co.uk/templates/ja_edenite/images/bgline.gif) repeat-x scroll 0 0;
    color: #515756;

    Thanks

    scotty Friend
    #282048

    Are you refreshing your browser cache? When you view your site hold SHIFT and click refresh (CTRL + F5 in FF)

    munders Friend
    #282060

    Yes, i do that every time it doesnt work

    scotty Friend
    #282061

    Do you have a live URL?

    BTW the link you posted in your CSS a few posts up does not work ?????

    EDIT: nevermind doh!

    scotty Friend
    #282063

    The image is a vertical one yes? ie. it’s higher than it is wide?

Viewing 9 posts - 1 through 9 (of 9 total)

This topic contains 9 replies, has 2 voices, and was last updated by  scotty 15 years, 11 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum