Page 1 of 3 123 LastLast
Results 1 to 10 of 23
  1. #1
    Join Date
    Jun 2004
    Posts
    613
    Plugin Contributions
    0

    Default Stumped trying to center the logo

    ok

    I've had a look around and seen a few threads on this

    I'm using 1.3.1

    I have a small css file for my overrides and I know that it works

    Code:
    body {
    	margin: 0;
    	font-family: verdana, arial, helvetica, sans-serif;
    	font-size: 62.5%;
    	color: #000000;
    	background-color: #FFFFFF;
    	}
    
    #mainWrapper {
    	background-color: #ffffff;
    	text-align: left;
    	width: 800px;
    	vertical-align: top;
    	}
    
    #logo{
    /*	float: right;*/
    	text-align: center; 
    	margin: 0 auto;
    	}
    
    #logoWrapper {
    	text-align: center;
    	margin: 0 auto;
    	margin: 0em;
    	padding: 0em;
    	height: 200px;
    	background-color: #ED1F23;
    	}
    the logo will move to the far right if I use

    float: right;

    but I can not get it to center.

    Where am I going wrong

    url

    http://chrome-orange.co.uk/uvex/

    TIA

  2. #2
    Join Date
    Jun 2003
    Posts
    33,715
    Plugin Contributions
    0

    Default Re: Stumped trying to center the logo

    Main Stylesheet:

    Code:
    #logo, .centerBoxContents, .specialsListBoxContents, .categoryListBoxContents, .centerBoxContentsAlsoPurch, .attribImg {
    	float: left;
    	}
    Comment out or remove #logo

  3. #3
    Join Date
    Jun 2004
    Posts
    613
    Plugin Contributions
    0

    Default Re: Stumped trying to center the logo

    Hi Kim

    Code:
    .centerBoxContents, .specialsListBoxContents, .categoryListBoxContents, .centerBoxContentsAlsoPurch, .attribImg {
    	float: left;
    	}
    is now my line - still no joy.

    even without removing #logo from the main stylesheet I can get the float: left to change by adding the #logo style to my style sheet, I just can't get it to center

  4. #4
    Join Date
    Jun 2004
    Posts
    613
    Plugin Contributions
    0

    Default Re: Stumped trying to center the logo

    #logo {
    width: 100%;
    text-align: center;
    }

    need that 100% to get it to centre!

  5. #5
    Join Date
    Oct 2004
    Location
    Southport, UK
    Posts
    4,237
    Plugin Contributions
    20

    Default Re: Stumped trying to center the logo

    #logo {
    float:none;
    text-align:center;
    }

    works for me.
    Development Manager @ JSWeb Ltd
    Over 15 years with Zencart

  6. #6
    Join Date
    Oct 2006
    Posts
    137
    Plugin Contributions
    0

    Default Re: Stumped trying to center the logo

    hi,
    I have tried all these options and it still won't centre

    this is my file directoty, could this be the problem?
    includes / templates / classic / css / stylesheet_new.css

    or should I be changing this one?
    includes / templates / template_default / css / stylesheet.css

  7. #7
    Join Date
    Apr 2006
    Location
    West Salem, IL
    Posts
    2,748
    Plugin Contributions
    0

    Default Re: Stumped trying to center the logo

    Quote Originally Posted by zas View Post
    hi,
    I have tried all these options and it still won't centre

    this is my file directoty, could this be the problem?
    includes / templates / classic / css / stylesheet_new.css

    or should I be changing this one?
    includes / templates / template_default / css / stylesheet.css
    You should be using overrides.
    includes/templates/YOUR_TEMPLATE_NAME/css/stylesheet.css

    please review the tutorials for setting up your template overrides

    If you don't use template overrides you run the risk of losing everything on the next update
    Mike
    GeekHost - Zen Cart Certified & PCI Compliant Hosting
    The Zen Cart Forum...Better than a monitor covered with post-it notes!

  8. #8
    Join Date
    Oct 2006
    Posts
    137
    Plugin Contributions
    0

    Default Re: Stumped trying to center the logo

    thanks for your response

    two questions -
    are upgrades essential?

    and what should I do about the files I have already changed?
    should I reinstall?
    and I have changed files in the includes/languages/english folder, will these be affected by upgrades?

    thanks

  9. #9
    Join Date
    Oct 2006
    Posts
    137
    Plugin Contributions
    0

    Default Re: Stumped trying to center the logo

    now it has lost all shape and colours etc, is that right?

  10. #10
    Join Date
    Feb 2005
    Posts
    283
    Plugin Contributions
    0

    Default Re: Stumped trying to center the logo

    If you want to use the classic template with all the colours etc - what you should do is create new folder in the included/templates folder on your server where classic & template_default sit - for example say your site was called hulk - create a folder called hulk now copy the classic files from yout pc into the hulk folder on your server

    Choose hulk as your template in the back office and then everytime you locally amend a file - i.e stylesheet etc ftp it up to your hulk folder

    This lets you make changes and if everything goes wrong you can always switch back to the untouched classic template.

    So now if you amend your stylesheet or header files you will still have the classic look and feel but you are using an override system.

    Hope that helps - this was my one sticky bit when I got started - wasn't sure what an override or the YOUR_TEMPLATE everyone spoke about was.

 

 
Page 1 of 3 123 LastLast

Similar Threads

  1. Trying to widen the center
    By lilguppy in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 31 Jan 2010, 05:25 PM
  2. Trying to center logo and other layout issues
    By Webartist in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 9 Feb 2009, 03:24 PM
  3. Replies: 2
    Last Post: 25 Aug 2008, 12:43 AM
  4. Center the Header Logo on V1.3.7.1
    By TheWelshMan in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 22 Aug 2007, 10:31 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