Results 1 to 7 of 7
  1. #1
    Join Date
    Apr 2008
    Posts
    150
    Plugin Contributions
    0

    Default Aligning the New and Featured products on main page

    I have New and Featured products showing on my main page.

    They are currently set to display in five columns.

    I would like these products to center when there is not enough of them to fill the last row.

    For example: If there are eight New items, I would like the last three to center under the first row of five.

    However, I have not been able to make that adjustment in my override stylesheet.css.

    Are the settings for those sections handled in another file? Thank you.

  2. #2
    Join Date
    Jul 2012
    Posts
    16,732
    Plugin Contributions
    17

    Default Re: Aligning the New and Featured products on main page

    The easiest way for someone to advise about css layout is for them to be able to see the page that is question via a browser. Doing so allows review of the css files that are pushed to the browser and to not only provide a solution that would perhaps always center a row, but make adjustments unnecessary when the row is "full" or perhaps to marry the css and php to provide a tag only on the last row, etc...

    Anyways, yes it is *possible* that the settings for those sections are handled or modified by another file. This is something you could likely answer yourself if you press the F12 key while viewing your webpage and use an option that reviews the css for the page.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  3. #3
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,145
    Plugin Contributions
    11

    Default Re: Aligning the New and Featured products on main page

    Quote Originally Posted by mc12345678 View Post
    The easiest way for someone to advise about css layout is for them to be able to see the page that is question via a browser. Doing so allows review of the css files that are pushed to the browser and to not only provide a solution that would perhaps always center a row, but make adjustments unnecessary when the row is "full" or perhaps to marry the css and php to provide a tag only on the last row, etc...

    Anyways, yes it is *possible* that the settings for those sections are handled or modified by another file. This is something you could likely answer yourself if you press the F12 key while viewing your webpage and use an option that reviews the css for the page.

    Translation: The more posting tips you answer, the more help we can be to you.

  4. #4
    Join Date
    Apr 2008
    Posts
    150
    Plugin Contributions
    0

    Default Re: Aligning the New and Featured products on main page

    .centerBoxContentsFeatured.centeredContent

    Defaults to the left, and I can get it to float right. I just can't center it.

  5. #5
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,145
    Plugin Contributions
    11

    Default Re: Aligning the New and Featured products on main page

    Sorry, that doesn't help. It could be anywhere. Can you not find the Posting Tips that show up each time you answer? Maybe a link to yoursiteDOTcom?

  6. #6
    Join Date
    Apr 2008
    Posts
    150
    Plugin Contributions
    0

    Default Re: Aligning the New and Featured products on main page

    Thank you anyway, but I don't believe it is a stylesheet issue.
    ZC wants to put these items in columns. The number of which is determined in the admin settings.
    It will center if it hasn't filled all of it's columns. However, after doing so, it will place the next item in the first available column under the first row.
    Apparently I can move it to the left or right, but it's still limited to the first available column... there is no centering it.
    To even out those blocks of products, I've just set the maximum number columns, and then set the maximum number of products to show as a multiple of that number. Somewhat limiting, but an easy solution.

  7. #7
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,145
    Plugin Contributions
    11

    Default Re: Aligning the New and Featured products on main page

    In Excel running on windows, if I want to open a file, I can either use Ctrl+O or Alt-F-O keystrokes. I can also click on File, then Open. On a Mac, slightly different. The point being, simply opening a file in Excel can be done in more than one way.

    The stylesheet can control every facet of an item to include color, height, width, left, right, center, top, bottom, etc, etc, etc. Sometimes, just adding a margin:auto call can center items in a div. Sometimes, even if an item is set to 5-wide and has only two elements, it can still be told to center itself. One could also change code to use a Flex Container.

    Could be just as simple as adding align-content:center to the containing div.

 

 

Similar Threads

  1. v151 Arrangement of Featured Products, Monthly Specials, and New Products on Main Page
    By kelly60 in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 25 Nov 2014, 10:27 PM
  2. How to Movew Sidebox Manufacterer onto the main page like Featured new products?
    By cageman555 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 10 Mar 2011, 07:22 PM
  3. New/Featured/Specials Products in Main Page Table
    By mipavluk in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 12 Jan 2010, 11:13 PM
  4. Replies: 1
    Last Post: 27 Nov 2008, 12:05 AM
  5. Adding Category Name to the New Products/Featured/Specials Boxes on Main Page
    By chinchilla2 in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 21 Aug 2006, 09:05 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