Results 1 to 4 of 4
  1. #1
    Join Date
    Sep 2010
    Posts
    263
    Plugin Contributions
    0

    Default How do I centre the Tagline ?

    How do I centre the Tagline itself ?

    i.e. this thing define('HEADER_SALES_TEXT', 'TagLine Here');

    The tagline text on my test site, is appearing more on one side of the page and is not centred.

    Thanks
    007

  2. #2
    Join Date
    Oct 2010
    Location
    Idaho
    Posts
    292
    Plugin Contributions
    0

    Default Re: How do I centre the Tagline ?

    That text will center between the (right edge of) the logo on the left and edge of the template on the right. That's why it may appear more rightish if you have widened your entire template.

    The logo picture element is forcing a wrap of text next to it, like a newspaper column wraps around a picture, and I have not discovered yet how to code the logo picture element to ignore the text to the right of it, i.e., not force the wrap. If possible, that would center your text more on the page, but relatively closer to the logo than to the right edge of the template.

    You could set the text to align left in the section of the stylesheet listed below, but it would then be shoved right up against the right edge of the logo, and you would then have to devise a solution for creating some space there. I am working on the same issue, not so much for a headline, more just for smaller size text for reading. I think I may add 10 pixels or so of transparency on to the right edge of my logo image, and then there would be a little space between the logo and text.

    CSS font size control uses the "em" system, which involves nesting of the values. Be careful when trying to adjust the font size -- the sizing for all font on the page begins life in the BODY section, and then this tagline code, below, makes it twice that big, and then the h1 header tag that is the final nest makes it 1.5 times more as big. It can be pretty frustrating to dial in font attributes in the tagline area. I am currently trying to find the source of the code that makes it bold! Can't seem to find it anywhere.
    ~Jim

    #tagline {

    color:#000000;

    font-size: 2em;

    text-align : left;

    vertical-align: middle;

  3. #3
    Join Date
    Sep 2010
    Posts
    263
    Plugin Contributions
    0

    Default Re: How do I centre the Tagline ?

    Ahh thanks for that advice. Sounds tricky. I'm using the standard template width, but the text is a bit right of centre. I have changed the font size, so I guess that might be part of the problem. The logo size has also changed.

    I know I accidentally left off the em part on H1 in stylesheet.css on one occasion and noticed the font size change. I've reset it back.

    Good luck with your testing. I will let you know if I find a way around this. It's a bit of a pain at present.

  4. #4
    Join Date
    Sep 2010
    Posts
    263
    Plugin Contributions
    0

    Default Re: How do I centre the Tagline ?

    Other solution I found to work.

    Try this below for your tpl_header.php template override;

    <div id="tagline"><?php echo HEADER_SALES_TEXT;?> <?php print "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;";?> </div>

    Use as many ;&nbsp as you need to centre your Tagline.

    ref; Learning PHP - Part 1: A Gentle Introduction

    http://www.communitymx.com/content/a...ge=2&cid=D5084

 

 

Similar Threads

  1. v154 how to edit the text in the tagline wrapper?
    By AbbyTan in forum General Questions
    Replies: 3
    Last Post: 27 Sep 2015, 11:25 AM
  2. How do I change the length of the tagline?
    By btolly in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 22 May 2009, 04:39 PM
  3. How to move the header search box to the tagline
    By ben harry in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 29 Mar 2009, 07:28 PM
  4. How do I change the font of the tagline?
    By ally in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 29 May 2008, 10:40 PM
  5. How do I change the bg colour behind the tagline?
    By hauruapai in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 10 Sep 2007, 02:01 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