Results 1 to 9 of 9
  1. #1
    Join Date
    Jul 2008
    Posts
    362
    Plugin Contributions
    0

    Default Centering header logo and text Checked FAQ

    Hey All,

    I have just followed the FAQ for adding a new logo replacing the logo.gif and i have got a custom logo but its not centred. I would like it centred and in line with my website along with the sales message goes here text. Please have a look at www.truwater.com.au/zencart/.

    Any help would be greatly appreciated.

  2. #2
    Join Date
    Mar 2008
    Location
    Cape Town & London (depends on the season)
    Posts
    2,975
    Plugin Contributions
    0

    Default Re: Centering header logo and text Checked FAQ

    try this for the #logo declaration. (IE: be specific about what padding is needed).

    #logo{
    padding-left: 0em;
    padding-bottom: 2em
    }

  3. #3
    Join Date
    Jul 2008
    Posts
    362
    Plugin Contributions
    0

    Default Re: Centering header logo and text Checked FAQ

    Thanks for the reply!

    I currently have this in the css


    #logo, .centerBoxContents, .specialsListBoxContents, .categoryListBoxContents, .centerBoxContentsAlsoPurch, .attribImg {
    float: left;
    }
    .centerBoxContents, .specialsListBoxContents, .categoryListBoxContents, .centerBoxContentsAlsoPurch, .attribImg {float: left;}

    #logo {float: left;}

    Would i need to add what u have reccommended to the bottom of this?

  4. #4
    Join Date
    Mar 2008
    Location
    Cape Town & London (depends on the season)
    Posts
    2,975
    Plugin Contributions
    0

    Default Re: Centering header logo and text Checked FAQ

    Styles and stylesheets are read CHRONOLOGICALLY, so declarations ought to be constructed carefully.

    For example, if you have at the top of your stylesheet:

    #logo {float: left; }

    and then at the bottom you have:-

    #logo {float: right; }

    The browser will apply the LAST one, and IGNORE the first one. So your logo would float RIGHT.

    -----------------------------------------------------------

    Now, in the case of your logo, you will see that the CURRENT declarations that apply to the logo (amongst others):-

    PHP Code:
    #logo, .centerBoxContents, .specialsListBoxContents, .categoryListBoxContents, .centerBoxContentsAlsoPurch, .attribImg {
       
    floatleft;
    }

    #logo { 
       
    floatleft;} 
    You will see just such duplication in practice - only that they say the same thing!

    You are ALREADY floating the logo LEFT in the first declaration (okay, so it's nested with a lot of other style id's that SHARE the same declaration, but it still applies to #logo).

    So there is NO NEED for you to have a separate declaration:-

    PHP Code:
    #logo { 
       
    floatleft;} 
    EDIT this one to look like mine:

    PHP Code:
    #logo {
       
    padding-left0em;
       
    padding-bottom2em


  5. #5
    Join Date
    Jul 2008
    Posts
    362
    Plugin Contributions
    0

    Default Re: Centering header logo and text Checked FAQ

    Thanks for the reply i applied the code u advised me but its still on the right i now have just this....

    #logo{
    padding-left: 0em;
    padding-bottom: 2em
    }

    Like i said no change what am i doing wrong?

  6. #6
    Join Date
    Jul 2008
    Posts
    362
    Plugin Contributions
    0

    Default Re: Centering header logo and text Checked FAQ

    I Just removed the sales message goes here text and the logo is no centred but i dont have my account and shipping links anymore, i have had to add a character for them to come back. I would like the my account link to be left justified and no sales message as this will be on the updated logo can anyone help? I suck this logos etc thnaks in advance

  7. #7
    Join Date
    Mar 2008
    Location
    Cape Town & London (depends on the season)
    Posts
    2,975
    Plugin Contributions
    0

    Default Re: Centering header logo and text Checked FAQ

    Quote Originally Posted by gee38l View Post
    Thanks for the reply i applied the code u advised me but its still on the right i now have just this....

    #logo{
    padding-left: 0em;
    padding-bottom: 2em
    }

    Like i said no change what am i doing wrong?
    Clear your browser cache on your home computer... then reload the page.

  8. #8
    Join Date
    Mar 2008
    Location
    Cape Town & London (depends on the season)
    Posts
    2,975
    Plugin Contributions
    0

    Default Re: Centering header logo and text Checked FAQ

    Additionally, you're getting a " on your header. This is because of a bad edit in the DEFINES of the tag line text.

  9. #9
    Join Date
    Jul 2008
    Posts
    362
    Plugin Contributions
    0

    Default Re: Centering header logo and text Checked FAQ

    I left the " there because when i remove the sales message text the my account/shipping info links disspear. I would like the my account/shipping link left justified wih no sales message, can anyone assist?

 

 

Similar Threads

  1. Center Logo W/o Centering Text
    By atl2rva in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 18 Mar 2010, 02:57 PM
  2. Stylesheet not loading - Already checked FAQ and searched forum
    By Jblack4083 in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 4 Jul 2007, 04:57 PM
  3. Help centering logo. No gap between the logo and text!
    By toxicgtr in forum General Questions
    Replies: 4
    Last Post: 7 Jan 2007, 01:24 AM
  4. Centering Header Logo
    By IncrediBody in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 9 Aug 2006, 03:55 AM

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