Results 1 to 9 of 9
  1. #1
    Join Date
    May 2016
    Location
    Ohio
    Posts
    410
    Plugin Contributions
    0

    Default Background Image Help

    This effects my main page when put into my define_main_page.html

    <style type="text/css">
    body {
    background-image: url(images/background.png);
    background-repeat: repeat;
    }
    </style>


    But I want it on every page, and isn't working when I put this (see below) in my stylesheet.css

    body {
    margin: 0;
    font-family: verdana, arial, helvetica, sans-serif;
    font-size: 60%;
    color: #3785c7;
    background-image: url(images/background.png);
    background-repeat: repeat;
    }

  2. #2
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,151
    Plugin Contributions
    11

    Default Re: Background Image Help

    it could just be that you are placing it in the wrong sequence, there's another background specified later, or a few other things. You'll get a much better answer if you provide a link to your site. Something like yoursiteDOTcom will keep the SEs from seeing it before you're ready.

  3. #3
    Join Date
    May 2016
    Location
    Ohio
    Posts
    410
    Plugin Contributions
    0

    Default Re: Background Image Help


  4. #4
    Join Date
    May 2016
    Location
    Ohio
    Posts
    410
    Plugin Contributions
    0

    Default Re: Background Image Help

    Changing it to this works: background-image: url(https://www.dvdua.com/images/background.jpg)

  5. #5
    Join Date
    Dec 2009
    Location
    Amersfoort, The Netherlands
    Posts
    2,846
    Plugin Contributions
    25

    Default Re: Background Image Help

    Because it is a relative path you need to tell your CSS file to go up one directory first. So the CSS should read.
    Code:
    background-image: url(../images/background.png);

  6. #6
    Join Date
    May 2016
    Location
    Ohio
    Posts
    410
    Plugin Contributions
    0

    Default Re: Background Image Help

    That is one of the things I tried which didn't work.

  7. #7
    Join Date
    Dec 2009
    Location
    Amersfoort, The Netherlands
    Posts
    2,846
    Plugin Contributions
    25

    Default Re: Background Image Help

    Quote Originally Posted by jmberman View Post
    That is one of the things I tried which didn't work.
    You should put the background image in includes/YOUR_TEMPLATE/images.

  8. #8
    Join Date
    May 2016
    Location
    Ohio
    Posts
    410
    Plugin Contributions
    0

    Default Re: Background Image Help

    Quote Originally Posted by Design75 View Post
    You should put the background image in includes/YOUR_TEMPLATE/images.
    Ah! Thank you!

  9. #9
    Join Date
    Dec 2009
    Location
    Amersfoort, The Netherlands
    Posts
    2,846
    Plugin Contributions
    25

    Default Re: Background Image Help

    Quote Originally Posted by jmberman View Post
    Ah! Thank you!
    includes/YOUR_TEMPLATE/images should of course be includes/templates/YOUR_TEMPLATE/images MORE COFFEE IS NEEDED

 

 

Similar Threads

  1. background image help
    By wartht in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 28 Oct 2011, 02:07 AM
  2. help with background image
    By smallpigpig in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 4 Jan 2011, 02:46 AM
  3. add background image to a attribute then have that background image act as hyperlink
    By sike1234 in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 14 Nov 2008, 05:38 PM
  4. Change background for [help?], shipping calculator and when enlarging image. Help!
    By smip in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 30 Oct 2007, 02:36 PM
  5. Background Image Help
    By jhosford in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 30 Oct 2006, 02:33 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR