Results 1 to 4 of 4
  1. #1
    Join Date
    Aug 2009
    Location
    Canada
    Posts
    42
    Plugin Contributions
    0

    help question background image position

    Hi there,
    I hope this is right place to ask this question.
    I am working on changing background of my ZenCart and I just realized that background is just right for the home page but height changes as I open other pages (width is fine). My background (1800 x 1800) has three colors across and second line is just positioned as same height as my navigation bar right under my header image (800 x 180). When I open other pages with longer content, the height of the background changes so that second/third lines go way lower and doesn't line up with the navbar.

    Currently my stylesheet is set as below.

    body {
    margin: 5px 0;
    font-family: verdana, arial, helvetica, sans-serif;
    font-size: 58%;
    color: #666666;
    background-image: url(../images/muteki_background.gif);
    background-position: center;
    background-repeat: no-repeat;
    }
    /* Desert Noon Template Layout*/
    /*BOF Main Wrapper - Wraps the contents of the layout*/
    #mainWrapper {
    margin: 0 auto;
    background-color: #000000;
    text-align: left;
    width: 800px;
    border: 1px solid #000000;
    border-width: 0 1px 0 1px;
    vertical-align: top;
    }
    /*EOF Main Wrapper*/
    /*BOF Header layout*/
    #headerWrapper {
    margin: 0;
    padding: 0;
    }

    Do I change the background-position to "relative"? Should I make background size bigger?
    I am newbie and I am not sure how to correctly set background without messing other stuff It will be great if someone could let me know how to set the background so that it stays same as I have it for the home page.
    Thanks.

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: background image position

    Post a link so that we can see whot you are dealing with
    Also your viewing resolution
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Aug 2009
    Location
    Canada
    Posts
    42
    Plugin Contributions
    0

    Default Re: background image position

    Hi,
    My screen is 1366 x 768. I just started to customize my shop and it is not live yet so I'm afraid I can't post the link... I just installed PayPal IPN, Canada Post and started to tackle storefront.

    Basucally, the background is simple three horizontal colors. Top is 180 px high Black horizontal line that matches my header logo hight, then White horizontal line that is same height as navbar, then rest is Red underneath.

    If I put background-position to"relative", would it make the background stay the same size (fixed position) and it won't expand the height??? If so, would I need some other code in stylesheet to make this work?

    Thanks!

  4. #4
    Join Date
    Aug 2009
    Location
    Canada
    Posts
    42
    Plugin Contributions
    0

    Default Re: background image position

    I just changed my background to vertical lines (on both side of main column) so that I don't have to deal with this problem. Actually the design turned out to be pretty good.

    I will change to horizontal design when I am more comfortable with css.

 

 

Similar Threads

  1. Background image cover entire background w/one image
    By oxicottin in forum Templates, Stylesheets, Page Layout
    Replies: 43
    Last Post: 3 Apr 2012, 03:18 PM
  2. problem with left and right background image position
    By fwed in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 22 May 2009, 10:33 PM
  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. How to Change Background Colour to Background image
    By ittybittykitty in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 9 Aug 2008, 04:36 PM
  5. Background Image & Background Color
    By jben in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 30 Mar 2008, 01:11 AM

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