Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    Join Date
    May 2006
    Posts
    2
    Plugin Contributions
    0

    shop banner is being repeated

    Hi,

    I have just configured my shop, but the top banner is being repeated. Could you advice how to fix this issue. I want that the banner should be centered, just like the rest of the shop has expanded to the screen size.

    See the shop at http://www.trendyessentials.com/ and advice. Thanks.

    Thanks,
    Vinai

  2. #2
    Join Date
    May 2006
    Posts
    16
    Plugin Contributions
    0

    Default Re: shop banner is being repeated

    Try changing to this - background-repeat: repeat-x; in your stylesheet where you have the logo image. Don't know if it will work, but it's worth a try. I'm still learning this css stuff myself.

  3. #3
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: shop banner is being repeated

    repeat-x does just that (it repeats the image horizontialy.

    Code:
    TABLE.header {
    
      background-image: url(../images/header_bg.jpg);
    
      Change this background-repeat: repeat-x; to this background-repeat: no-repeat;
    
      background-color: #ffffff;
    
      border-right: 1px solid #9a9a9a;
    
      border-left: 1px solid #9a9a9a;
    
      border-bottom: 1px solid #9a9a9a;
    
    }
    PS. also add this to the code above: text-align: center;

    See if that fixes the problem.

  4. #4
    Join Date
    Apr 2006
    Location
    Chiang Mai
    Posts
    405
    Plugin Contributions
    0

    Default Re: shop banner is being repeated

    if you replaced the zen header_bg.jpg with your image 'banner' you may not be able to center it, try replacing the logo.gif instead - it took me a long time to figure that one out...

  5. #5
    Join Date
    May 2006
    Posts
    2
    Plugin Contributions
    0

    Default Re: two stylesheet references in source

    Thanks to all of you. I managed to fix the issue with your tips. The no-repeat did the trick.


    However I noticed that the source code of the home page now displays the names of two CSS files next to each other. See at http://www.trendyessentials.com/

    <link rel="stylesheet" type="text/css" href="includes/templates/classic/css/stylesheet.css" />
    <link rel="stylesheet" type="text/css" href="includes/templates/classic/css/stylesheet_fullscreen.css" /></head><body id="index">

    Now I don't know if I did something or was it the default, but can't figure out how I got two different stylesheets to appear in the home page. Any help is appreciated.

    Thanks,
    Vinai

  6. #6
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: shop banner is being repeated

    Check your includes -> templates -> classic -> css folder.

    I suspect you have both of these stylesheets included.

    delete the one you don't use from your server.

    if you have access to cPanel on your server you can delete it there or delete through your FTP program.

  7. #7
    Join Date
    May 2006
    Posts
    16
    Plugin Contributions
    0

    Default Re: shop banner is being repeated

    Did you have someone create a custom template for you or did you add a mod to the script? When I use FireFox with the Developer tool and take out all the info in the fullscreen css the width of the content goes back to what is in the regular stylesheet. With the fullscreen css still there you get the shop taking up the fullscreen. lol Hope that makes sense.

    I didn't investigate what else the full screen stylesheet might be configuring.

    From my studying css in the last week or so I found out that you can have multiple stylesheets. I'm using the newest version of Zen Cart and it has three styleshheets - one for the regular formatting, one for buttons (haven't investigated this yet) and also one to control how the page would print out on a printer.

  8. #8
    Join Date
    May 2006
    Posts
    4
    Plugin Contributions
    0

    Default Re: shop banner is being repeated

    Quote Originally Posted by clydejones
    repeat-x does just that (it repeats the image horizontialy.

    Code:
    TABLE.header {
    
      background-image: url(../images/header_bg.jpg);
    
      Change this background-repeat: repeat-x; to this background-repeat: no-repeat;
    
      background-color: #ffffff;
    
      border-right: 1px solid #9a9a9a;
    
      border-left: 1px solid #9a9a9a;
    
      border-bottom: 1px solid #9a9a9a;
    
    }
    PS. also add this to the code above: text-align: center;

    See if that fixes the problem.
    I tried this fix on a fresh install, and it removed the duplicate image, but the center column is still stretched way too wide for the screen. It looks fine with Mac firefox, but not with safari. Any ideas? http://www.takspeed.com/zstore/index.php?main_page=

  9. #9
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: shop banner is being repeated

    Quote Originally Posted by takspeed
    I tried this fix on a fresh install, and it removed the duplicate image, but the center column is still stretched way too wide for the screen. It looks fine with Mac firefox, but not with safari. Any ideas? http://www.takspeed.com/zstore/index.php?main_page=
    I checked the URL you provided and it looks like a fresh install of zencart with the demo setup. Looks fine in Firefox and IE on a PC

  10. #10
    Join Date
    May 2006
    Posts
    4
    Plugin Contributions
    0

    Default Re: shop banner is being repeated

    Quote Originally Posted by clydejones
    I checked the URL you provided and it looks like a fresh install of zencart with the demo setup. Looks fine in Firefox and IE on a PC
    hmmm... it looks fine with IE and firefox on my mac, but both Safari and Opera have the extra wide center column that makes the page unreadable. any clues what to look for in the .css files?

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v151 Banner 7 being difficult
    By In2Deep in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 10 Jan 2015, 09:59 PM
  2. Shop Banner
    By langflyer in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 21 Oct 2009, 09:16 AM
  3. Shop being relocated to website
    By Margueritte in forum General Questions
    Replies: 1
    Last Post: 27 May 2006, 08:26 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