Results 1 to 4 of 4
  1. #1
    Join Date
    Nov 2011
    Posts
    15
    Plugin Contributions
    0

    Default Background Image Alignment

    Zencart Version 1.5

    Hi All,

    I am having trouble aligning my background image with my centre wrapper. I need to move my centre wrapper a small bit to the left to align with background image, or possibly move my background image to right!!

    Anyways take a look at below site and if anyone can give me a few pointers i would be very gratefull,

    http://www.sportsbooks.ie/shop/

    Also if I minimise window will it stay aligned or would it need extra code?

    Thanks,
    Trevor

  2. #2
    Join Date
    Sep 2006
    Posts
    542
    Plugin Contributions
    0

    Default Re: Background Image Alignment

    You have you main wrapper set wider than you image and to fix it in your style sheet

    #mainWrapper {
    background-color: #ffffff;
    width: 936px;
    vertical-align: top;
    border: 1px solid #00722F;
    }
    ~~~~~~~~~~~~~~~~~~~~~~~~~~

    Play with it long enough and you will break it.

  3. #3
    Join Date
    Nov 2011
    Posts
    15
    Plugin Contributions
    0

    Default Re: Background Image Alignment

    Thanks for your help but no joy with that, if i go changing that the wrapper width with it justs makes the allignment on the right side worse.
    If you look at the right side the wrapper is sligthly overlappin the background image (faded green border running vertically on both sides)

    To resolve it i need to be able to move the centre wrapper slightly to left. The other option move background image a little to right!!

    Sorry not sure if what im saying is even possible....

    Anyways thanks again......

  4. #4
    Join Date
    Nov 2011
    Posts
    15
    Plugin Contributions
    0

    Default Re: Background Image Alignment

    Solved it!!

    For anyone else who this might help I just added the following line and it moved the wrapper to the left which aligned it nicely with my background,

    body {
    margin: 0;
    font-family: verdana, arial, helvetica, sans-serif;
    font-size: 62.5%;
    color: #000000;
    background-color: #ffffff;
    background-image: url(../images/sportsbooks_border.gif);
    padding-right: 7px;
    }

 

 

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. Header and Background Alignment
    By lalakerman in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 6 Oct 2009, 04:04 AM
  3. Background Image Alignment (Mozilla and IE)
    By lalakerman in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 29 Jan 2009, 12:58 AM
  4. 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

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