Results 1 to 9 of 9
  1. #1
    Join Date
    Feb 2010
    Location
    New South Wales, Australia
    Posts
    228
    Plugin Contributions
    0

    Default Featured Products and alignment

    I would like to have each product in the featured products to be centered in their box. At the moment they are left aligned and it looks odd. I have looked everywhere to find where this is set but can not find the solution. I am using a purchased template that I have tailored to suit me. Can anyone help?
    My site is: www.thehorsestall.com.au.

  2. #2
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,024
    Plugin Contributions
    3

    Default Re: Featured Products and alignment

    Add the red part in your stylesheet:

    .product_box {width:100%; margin-bottom:9px; background:#ffffff; text-align:center;}

    Also. Zencart loads all stylesheets with the css extension in the current template's css folder, so it's always a good practice to remove 'old' stylesheets from that folder so you don't have conflicts.

  3. #3
    Join Date
    Dec 2006
    Location
    Seligman, MO U.S.A.
    Posts
    2,101
    Plugin Contributions
    5

    Default Re: Featured Products and alignment

    In your includes/templates/theme229/css/stylesheet_tm.css find this section of code:

    Code:
    .product_box {width:100%; margin-bottom:9px; background:#ffffff}<---missing semicolon after #ffffff;
    and add text-align: center; to make it look like this:

    Code:
    .product_box {width:100%; margin-bottom:9px; background:#ffffff; text-align: center;}
    Hope this helps.



    NOTE: Seems like every instance of the color #ffffff; in that particular stylesheet, you're missing the semicolon. You might want to fix those.
    Teach them to shop and they will shop today;
    Teach them to Zen and they will OWN a shop tomorrow!

  4. #4
    Join Date
    Feb 2010
    Location
    New South Wales, Australia
    Posts
    228
    Plugin Contributions
    0

    Default Re: Featured Products and alignment

    Thankyou guys! That did the trick.
    One more thing: The images are going to the right. Is that more about the image size (ie rectangle)? Or can I force them to centre as well?

  5. #5
    Join Date
    Dec 2006
    Location
    Seligman, MO U.S.A.
    Posts
    2,101
    Plugin Contributions
    5

    Default Re: Featured Products and alignment

    Quote Originally Posted by robbie269 View Post
    Thankyou guys! That did the trick.
    One more thing: The images are going to the right. Is that more about the image size (ie rectangle)? Or can I force them to centre as well?
    With the code you just added, everything including images look very nicely center-aligned to me. Maybe it's your browser's cache?
    Teach them to shop and they will shop today;
    Teach them to Zen and they will OWN a shop tomorrow!

  6. #6
    Join Date
    Feb 2010
    Location
    New South Wales, Australia
    Posts
    228
    Plugin Contributions
    0

    Default Re: Featured Products and alignment

    Hi again

    Just realised it not only centered the Featured Products box it also centered ALL the product boxes. Changed it back to how it was as the other boxes looked odd with the text centered and the attibutes to the left etc. Is there a way of centering ONLY the Featured Products boxes as I have them displayed on my main page? Site: http://www.thehorsestall.com.au

  7. #7
    Join Date
    Dec 2006
    Location
    Seligman, MO U.S.A.
    Posts
    2,101
    Plugin Contributions
    5

    Default Re: Featured Products and alignment

    Hmmmm.........I see what you mean. O.k. Right above where you added and deleted the "text-align: center;", add this line of code:

    Code:
    #featuredProducts .product_box {text-align: center;}
    I think that'll fix ya up.
    Teach them to shop and they will shop today;
    Teach them to Zen and they will OWN a shop tomorrow!

  8. #8
    Join Date
    Feb 2010
    Location
    New South Wales, Australia
    Posts
    228
    Plugin Contributions
    0

    Default Re: Featured Products and alignment

    That did it. Thankyou very much!

  9. #9
    Join Date
    Dec 2006
    Location
    Seligman, MO U.S.A.
    Posts
    2,101
    Plugin Contributions
    5

    Default Re: Featured Products and alignment

    Anytime. Glad to see it's all working correctly.
    Teach them to shop and they will shop today;
    Teach them to Zen and they will OWN a shop tomorrow!

 

 

Similar Threads

  1. v150 Featured Image alignment and the white space under logo
    By jongaguy in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 28 Apr 2014, 05:37 AM
  2. Uniform Alignment of Add to Cart Button in Featured products
    By newbie456 in forum General Questions
    Replies: 0
    Last Post: 10 Aug 2011, 02:38 AM
  3. Featured Products Formatting/Alignment Issue
    By Leatris in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 19 Jan 2011, 01:37 AM
  4. Featured Products image alignment
    By donng18 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 20 Jul 2010, 04:38 PM
  5. Replies: 0
    Last Post: 30 Sep 2009, 12:23 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