Results 1 to 8 of 8
  1. #1
    Join Date
    Jul 2006
    Posts
    248
    Plugin Contributions
    0

    help question How to align text center?

    Hi,

    I've been trying to align the text in my short description to the center. nothing seems to be working though! In the stylesheet for my short descriptions I am typing:

    .productShortDescription {
    font-weight: bold;
    text-align: center; }

    It doesn't work though. I know I am in the right place though because if I insert {float: right} the short description text goes to the right of the page.

    Any ideas of what code I can put in to get the text into the centre? An example from one of my pages is: http://www.handcrafteduk.com/african...pipe-p-34.html

    Thanks,

    Gary

  2. #2
    Join Date
    Jul 2006
    Posts
    248
    Plugin Contributions
    0

    help question Re: How to align text center?

    Ok, An update!

    As trying to align the text wasn't working I have input this code:

    .productShortDescription {
    font-weight: bold;
    margin: 160px;;
    font-size: 1.2em;
    }

    It moves the text more or less into the center but it still isn't quite right. Any ideas on what I can change to get it EXACTLY into the center?

    Thanks,

    Gary

  3. #3
    Join Date
    Jul 2006
    Posts
    248
    Plugin Contributions
    0

    Default Re: How to align text center?

    Hello,

    I'm still stuck on this one. Anyone got any idea how to solve it?

    Thanks,

    Gary

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

    Default Re: How to align text center?

    Posting again in the hope that someone might help should i bump the thread!!

  5. #5
    Join Date
    Feb 2007
    Location
    Calabasas, CA & St. Pete, FL
    Posts
    117
    Plugin Contributions
    0

    Default Re: How to align text center?

    Looks pretty centered to me. What isn't quite right about it?
    -James Starting from scratch!
    Started out w/ZenCart 1.3.7 (No upgrades)
    http://www.nomadicmoto.com/
    Review my site here: http://www.zen-cart.com/forum/showthread.php?t=63630

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

    Default Re: How to align text center?

    Hurrah, someone replied - thank you

    It's not centered when i look in my explorer and mozilla browsers. For example, looking at: http://www.handcrafteduk.com/tibetan...rje-p-111.html you will see the line:

    'Important item for practicing Buddhists. Made from brass' is to the left of the screen whilst the lines of text above and below it are centred.

  7. #7
    Join Date
    Feb 2007
    Location
    Calabasas, CA & St. Pete, FL
    Posts
    117
    Plugin Contributions
    0

    Default Re: How to align text center?

    Quote Originally Posted by HandcraftedUK View Post
    Hurrah, someone replied - thank you

    It's not centered when i look in my explorer and mozilla browsers. For example, looking at: http://www.handcrafteduk.com/tibetan...rje-p-111.html you will see the line:

    'Important item for practicing Buddhists. Made from brass' is to the left of the screen whilst the lines of text above and below it are centred.
    I don't know which file this is in, but look for "Product Short Description" in your files. It looks like it is labeled wrong on the end file. It's closed as Product name instead of Product short description (see red).
    Code:
    <!--bof Product Name-->
    <h1 id="productName" class="productGeneral">Tibetan Prayer Bell and Dorje</h1>
    <!--eof Product Name-->
    
    <!--bof Product Short Description-->
    <span class="productShortDescription">Important item for practicing Buddhists.  Made from brass.</span><!--eof Product Name-->
    Dunno if that will fix it, but see if it does.
    -James Starting from scratch!
    Started out w/ZenCart 1.3.7 (No upgrades)
    http://www.nomadicmoto.com/
    Review my site here: http://www.zen-cart.com/forum/showthread.php?t=63630

  8. #8
    Join Date
    Jul 2006
    Posts
    248
    Plugin Contributions
    0

    Default Re: How to align text center?

    HI,

    Thanks for the second reply. That bit of code was so that, in the product listing display, the short descriptions would show as opposed to the standard descriptions that zencart uses. It would affect the layout of the text.

    Thanks

 

 

Similar Threads

  1. How to Center-Align Store in IE7
    By foteek in forum General Questions
    Replies: 2
    Last Post: 25 Nov 2010, 08:49 AM
  2. How to Align Catagories in Center Column?
    By Octavian186 in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 28 Feb 2009, 02:31 AM
  3. categoryIcon....how do I change to center align?
    By GraniteMan44 in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 10 Mar 2008, 10:03 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