Page 2 of 2 FirstFirst 12
Results 11 to 18 of 18
  1. #11
    Join Date
    Aug 2004
    Location
    New York City
    Posts
    7,174
    Plugin Contributions
    0

    Default Re: How do I place a background image?

    My mistake. You were right the first time. https://www.zen-cart.com/tutorials/i...hp?article=125

  2. #12
    Join Date
    Nov 2008
    Posts
    230
    Plugin Contributions
    0

    Default Re: How do I place a background image?

    Where exactly in the code should this be? I wonder if I have it in the wrong spot?

  3. #13
    Join Date
    Nov 2008
    Posts
    230
    Plugin Contributions
    0

    Default Re: How do I place a background image?

    Quote Originally Posted by afo View Post
    My mistake. You were right the first time. https://www.zen-cart.com/tutorials/i...hp?article=125

    Ok! That must be where I got it then.

    Here's my code:
    .centerBoxContents, .specialsListBoxContents, .categoryListBoxContents, .centerBoxContentsAlsoPurch, .attribImg {
    float:left;
    }
    #logo {text-align: center;
    }
    It's not doing anything on the site though

  4. #14
    Join Date
    Nov 2008
    Posts
    230
    Plugin Contributions
    0

    Default Re: How do I place a background image?

    LOL! I noticed when I pasted that on there that I still had one thing floating left. Thought it would be great now. Changed it to this:

    .centerBoxContents, .specialsListBoxContents, .categoryListBoxContents, .centerBoxContentsAlsoPurch, .attribImg {
    text-align: center;
    }
    #logo {text-align: center;
    }
    But it still didn't do anything

  5. #15
    Join Date
    Aug 2004
    Location
    New York City
    Posts
    7,174
    Plugin Contributions
    0

    Default Re: How do I place a background image?

    The logo you're using is wider than the site which is why it's not working. It can't center it because it's too big to center.

  6. #16
    Join Date
    Nov 2008
    Posts
    230
    Plugin Contributions
    0

    Default Re: How do I place a background image?

    Quote Originally Posted by afo View Post
    The logo you're using is wider than the site which is why it's not working. It can't center it because it's too big to center.
    Ahhhhh!! How do you know these things?!

    What size does it need to be? The 760x110 as seen here? :https://www.zen-cart.com/tutorials/i...hp?article=124
    Last edited by MamaT; 12 Nov 2008 at 10:47 PM.

  7. #17
    Join Date
    Nov 2008
    Posts
    230
    Plugin Contributions
    0

    Default Re: How do I place a background image?

    I resized the header in photoshop, uploaded it to the server, changed the image name and sizing numbers, and all it did was show a second one over the first. Neither was centered. I deleted the new one and went back to the first. WHAT am I doing wrong?! The header should be one of the easy parts! LOL!

  8. #18
    Join Date
    Nov 2008
    Posts
    230
    Plugin Contributions
    0

    Default Re: How do I place a background image?

    It's FIXED!!!!

    A friends husband suggested the following. I tried it and it took care of the problem!!

    In this stylesheet:

    includes/templates/mostlygrey/css/stylesheet.css
    find the block that begins with:

    #logoWrapper {

    and inside that block, try adding:

    margin: auto;


    Since you are specifying a width for that block, that should tell it to automatically balance the margins on either side which should center the box.

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. How can I place an image right next to the mainWrapper?
    By DML73 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 5 Jan 2010, 04:45 PM
  2. 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
  3. 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
  4. How to place an image in header.
    By Graphicman in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 24 Feb 2008, 06:58 PM
  5. EZ links - How can I place an image underneath?
    By bjraines in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 7 Sep 2006, 11:14 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