Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    Join Date
    Aug 2005
    Posts
    27
    Plugin Contributions
    0

    Default Centering Logo.gif File.

    I have replaced the logo.gif file with my own logo.gif file but with the same name. I have removed the tagline. Now I would like to center my logo.gif file in the space that the original logo.gif occupied. Using the Logo float setting I can only get the image to move to the left or the right but not centered. Even better I would like it not only to be centgered but to occupy all the space therein. Thanks.

  2. #2
    Join Date
    Jan 2005
    Location
    Lake Havasu, AZ
    Posts
    1,149
    Plugin Contributions
    0

    Default Re: Centering Logo.gif File.

    Change #logo to
    $logo
    {text-align: center;
    margin: auto}

    In the file YOURTEMPLATE/COMMON/tpl_header.php

    change the <div class="logo"> to <div id="logo">


    Should center right up.

    Hope that helps
    When the world gets in my face I say Have A Nice Day.
    * I DO Think and I HAVE BEEN Zenned - therefore, I AM * I donate - do you?
    Custom Templates and Zen Services CRS Designs, Inc.

  3. #3
    Join Date
    Aug 2005
    Posts
    27
    Plugin Contributions
    0

    Default Re: Centering Logo.gif File.

    Thanks Tina. That work as you indicated.

    Now I have a rectangle within a rectangle. How can I fill up the outer rectangle with the image in the inner rectangle. I can control the padding above the inner rectagle by changing the padding- top in the css file:
    #logo {
    text-align: center;
    PADDING-RIGHT: 0px;
    PADDING-LEFT: 0px;
    PADDING-BOTTOM: 0px;
    VERTICAL-ALIGN: middle;
    PADDING-TOP: 10px
    }

    However, the padding-bottom does not control the space beneath the inner rectangle. Once again thanks.

  4. #4
    Join Date
    Jul 2006
    Posts
    13
    Plugin Contributions
    0

    Default Re: Centering Logo.gif File.

    I am interested in centering my logo as well...though can't find the file/directory you seem to be referencing...

    Could you tell me in which file do I need to change the "#logo to $logo"?

  5. #5
    Join Date
    Jan 2005
    Location
    Lake Havasu, AZ
    Posts
    1,149
    Plugin Contributions
    0

    Default Re: Centering Logo.gif File.

    On filling the outer box - you will want to use your logo as a header background - or do a little tweeking to the inlcudes/templates/YOURTEMPLATE/tpl_header.php


    As for which file we are referring to in centering the logo - it is includes/templates/YOURTEMPLATE/css/stylesheet.css

    OHHHH and I see a typo in my own code there
    Change #logo to
    $logo
    {text-align: center;
    margin: auto}

    SHOULD READ :

    Change #logo to
    #logo
    {text-align: center;
    margin: auto}


    Hope that helps
    When the world gets in my face I say Have A Nice Day.
    * I DO Think and I HAVE BEEN Zenned - therefore, I AM * I donate - do you?
    Custom Templates and Zen Services CRS Designs, Inc.

  6. #6
    Join Date
    Jul 2006
    Posts
    13
    Plugin Contributions
    0

    Default Re: Centering Logo.gif File.

    Thanks for your reply Tina!

    I'm sorry to be a pain...but I don't see a line of code with "#logo" at all in my stylesheet...

    Also, I don't want to make the logo fill the whole space, but I am concerned that I don't have the tpl_header.php file in the /my_template directory...

  7. #7
    Join Date
    Jan 2005
    Location
    Lake Havasu, AZ
    Posts
    1,149
    Plugin Contributions
    0

    Default Re: Centering Logo.gif File.

    You can add the code for the logo to the end of the stylesheet.

    If you don't see the tpl_header.php in your custom template it is because you haven't modified that file. You only want to put your modified files into the overe ride directory.
    When the world gets in my face I say Have A Nice Day.
    * I DO Think and I HAVE BEEN Zenned - therefore, I AM * I donate - do you?
    Custom Templates and Zen Services CRS Designs, Inc.

  8. #8
    Join Date
    Aug 2005
    Posts
    27
    Plugin Contributions
    0

    Default Re: Centering Logo.gif File.

    Tina, once again thanks. Every worked like a charm. BTW the tpl_header.php file is located in inlcudes/templates/YOURTEMPLATE/common/tpl_header.php .

    Although this has nothing to do with this discussion I was wondering if it wouldn't be simpler to just create a my_template subdirectory under includes/templates and then just copy the includes/templates/template_default files into it. In this way you would just constantly work from the files in includes/templates/my_template continously without having to recall if in fact you ported them over prior to working on them?

    Once again thanks.

  9. #9
    Join Date
    Jun 2006
    Posts
    223
    Plugin Contributions
    0

    Default Re: Centering Logo.gif File.

    Where can you change the logo's dimensions in the html?

  10. #10
    Join Date
    Jun 2003
    Posts
    33,721
    Plugin Contributions
    0

    Default Re: Centering Logo.gif File.

    languages/english/header.php - make a copy and add it to your language override after editing.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Centering Logo.gif
    By Harvezter in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 23 Oct 2009, 02:10 AM
  2. Icon.gif and Logo.gif
    By patwithds in forum General Questions
    Replies: 5
    Last Post: 27 Aug 2009, 05:48 PM
  3. Need to put a swf file for the header, instead of logo.gif
    By brodywebdesign in forum General Questions
    Replies: 1
    Last Post: 31 Mar 2008, 10:55 AM
  4. Replace Logo.gif with an HTML File
    By ner0tik in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 14 Jul 2007, 08:35 PM
  5. 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

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