Page 1 of 3 123 LastLast
Results 1 to 10 of 24
  1. #1
    Join Date
    Feb 2007
    Posts
    27
    Plugin Contributions
    0

    Default Center the Header Logo on V1.3.7

    Hi,
    I'm trying to centralise the header logo in Zencart v1.3.7, I've tried following instructions from previous posts but nothing seems to work.
    At the moment my line in my template stylesheet reads as follows
    #logo {float: left; position: absolute; top: 15px; left: 15px;}
    I've tried changing it to #logo {text-align: center; margin: 0 auto;} but it still aligns to the left.
    Any help would be great,
    Thanks

  2. #2
    Join Date
    Feb 2007
    Posts
    107
    Plugin Contributions
    0

    Default Re: Center the Header Logo on V1.3.7

    Have you tried:

    #logo {margin-left: auto;[FONT=monospace] [/FONT]margin-right: auto; }

    It worked some of the areas I was editing.

  3. #3
    Join Date
    Feb 2007
    Posts
    27
    Plugin Contributions
    0

    Default Re: Center the Header Logo on V1.3.7

    Hi GrandmaJ,
    Thanks for your reply, I've just tried it and I'm afraid it's still stuck on the left hand side! I'm wondering now if there is some code somewhere else that is instructing it to be positioned to the left.
    Cheers,
    Mike

  4. #4
    Join Date
    Feb 2007
    Posts
    107
    Plugin Contributions
    0

    Default Re: Center the Header Logo on V1.3.7

    Hmm.. . can you post the url?

  5. #5
    Join Date
    Feb 2007
    Posts
    27
    Plugin Contributions
    0

    Default Re: Center the Header Logo on V1.3.7

    Hi,
    My url is www.lathespares.co.uk I've even tried to alter the code to try and make the logo appear on the right instead of the left and it still appears on the left!
    Cheers,
    Mike

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

    Default Re: Center the Header Logo on V1.3.7

    Try making the following changes to your stylesheet.css

    #headerBackground {text-align:center;width: 100%; height: 83px; background: url(../images/bg_header.jpg) repeat-x #88a0c2;}

    #logo {margin:0;}

    make the changes highlighted in red

  7. #7
    Join Date
    Feb 2007
    Posts
    27
    Plugin Contributions
    0

    Default Re: Center the Header Logo on V1.3.7

    Hi Clyde,

    That's brilliant, it worked first time! I've also added to the {margin:0;} this bit of extra code to centralise it in the up and down axis {margin: 1% 0;} I don't know if this is the correct way or not to centralise it up and down but if it's not please let me know.

    Thanks again,

    Mike

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

    Default Re: Center the Header Logo on V1.3.7

    Glad to help.

  9. #9
    Join Date
    Apr 2006
    Location
    Right Here
    Posts
    106
    Plugin Contributions
    0

    Default Re: Center the Header Logo on V1.3.7

    Hello

    can anyone help me please.......I am trying to put my banner in but not sure where it goes the path that is and I got this error when doing it.......

    Warning: Cannot modify header information - headers already sent by (output started at /home/doggil/public_html/cart/includes/languages/english/classic/header.php:41) in /home/doggil/public_html/cart/includes/init_includes/init_templates.php on line 78

    when this happened it made everything really really big......does anyone know how to fix this....


    God bless
    ClassAct

  10. #10
    Join Date
    Aug 2007
    Posts
    7
    Plugin Contributions
    0

    Default Re: Center the Header Logo on V1.3.7

    I had that same problem, and finally realized that I had accidentally created a space after the final php on that page. Delete those spaces, and refresh your browser. Worked for me.

 

 
Page 1 of 3 123 LastLast

Similar Threads

  1. v139h Center center logo in header
    By brush4hire in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 23 May 2012, 01:44 PM
  2. What is the correct code to center my header logo...
    By sfklaas in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 18 Feb 2009, 06:00 PM
  3. How to center a logo in the header..
    By wmorris in forum General Questions
    Replies: 9
    Last Post: 13 Jun 2008, 07:27 PM
  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