Results 1 to 4 of 4
  1. #1
    Join Date
    Mar 2009
    Posts
    169
    Plugin Contributions
    2

    help question Horizontal Rule for Centerbox Modules Content

    Hi - I've searched the forums and can't find the exact solution.

    What I'm trying to do is, add a horizontal rule after each row in the centerbox contents of modules.

    For instance, say you have a category called BMW. Now Zen-Cart allows you to show the new products and featured products modules below the product listing within the BMW category.

    I want to create a horizontal rule in the new products and featured products module, and this horizontal rule must be after each row.

    I accomplished this by adding border-bottom: to the CSS, but this doesn't work too tell. Say my new products has a total of 5 items, and it's divided into 3 items per row, that means the last 2 items are pushed to the next row, and what happens is, the bottom border stops on the last product and doesn't follow through - it looks weird.

    I'm pretty certain this cannot be done through CSS and needs to be a mod in one of the .php files - I think

    includes/modules/new_products.php

    is where it's at but I don't know how to inject the <hr>

    Please help and thanks!

  2. #2
    Join Date
    Feb 2010
    Location
    Syracuse, NY
    Posts
    2,159
    Plugin Contributions
    17

    Default Re: Horizontal Rule for Centerbox Modules Content

    For the new, featured and specials modules you could always just add it to:

    includes/templates/YOUR_TEMPLATE/common/tpl_columnar_display.php

    at the very end, find the:

    Code:
    <br class="clearBoth" />
    change to:
    Code:
    <br class="clearBoth" /><hr />

    or look in the add-on section for column divider pro

    hope this helps!

  3. #3
    Join Date
    Mar 2009
    Posts
    169
    Plugin Contributions
    2

    Default Re: Horizontal Rule for Centerbox Modules Content

    Quote Originally Posted by rbarbour View Post
    For the new, featured and specials modules you could always just add it to:

    includes/templates/YOUR_TEMPLATE/common/tpl_columnar_display.php

    at the very end, find the:

    Code:
    <br class="clearBoth" />
    change to:
    Code:
    <br class="clearBoth" /><hr />

    or look in the add-on section for column divider pro

    hope this helps!
    LOL - that worked perfectly - you're a champion thanks buddy

  4. #4
    Join Date
    Feb 2010
    Location
    Syracuse, NY
    Posts
    2,159
    Plugin Contributions
    17

    Default Re: Horizontal Rule for Centerbox Modules Content

    glad this worked for you!

 

 

Similar Threads

  1. Can I add a "HR" horizontal rule inside my sideboxes?
    By pwoens in forum Basic Configuration
    Replies: 7
    Last Post: 28 Mar 2011, 11:48 PM
  2. How and where to insert a Horizontal Rule into an Index Listing?
    By skelly100 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 14 Jul 2010, 05:07 PM
  3. Remove Horizontal Rule?
    By jymontoya in forum Templates, Stylesheets, Page Layout
    Replies: 11
    Last Post: 16 Apr 2009, 07:37 PM
  4. Centerbox content problem
    By mcmatt in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 20 Feb 2007, 07:55 PM
  5. Horizontal rule not showing in Firefox
    By Xyon in forum General Questions
    Replies: 5
    Last Post: 15 Oct 2006, 01:31 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