Results 1 to 10 of 23

Hybrid View

  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,720
    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,244
    Plugin Contributions
    20

    Default Re: Stumped trying to center the logo

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

    works for me.
    Development Manager @ JSWeb Ltd - suppliers of Applepay/Googlepay for Zencart
    20 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
    Mar 2009
    Posts
    2
    Plugin Contributions
    0

    Default Re: Stumped trying to center the logo

    Quote Originally Posted by Chrome Orange View Post
    #logo {
    width: 100%;
    text-align: center;
    }

    need that 100% to get it to centre!
    Worked for me!

 

 

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

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