Results 1 to 8 of 8

Hybrid View

  1. #1
    Join Date
    Feb 2006
    Posts
    230
    Plugin Contributions
    0

    Have a Drink Help needed with Horizontal Line in product listing

    Have spent a lot of time searching and reading through numerous threads trying to add a horizontal line between my product listings - product, new, all, featured etc.

    Finally tried the following -
    .productListing-odd td, .productListing-even td {
    vertical-align: top;
    border-bottom: 1px solid #ff0000; padding: 2 3px;
    }

    .allproductListing-odd, .allproductListing-even {
    vertical-align: top;
    border-bottom: 1px solid #ff0000; padding: 2 3px;
    }

    .newproductListing-odd, .newproductListing-even {
    vertical-align: top;
    border-bottom: 1px solid #ff0000; padding: 2 3px;
    }


    .featuredproductListing-odd, .featuredproductListing-even {
    vertical-align: top;
    border-bottom: 1px solid #ff0000; padding: 2 3px;
    }


    This works OK in -productlisting - but WEIRDLY in allproductListing and NOT AT ALL in newroductListing & featuredproductListing

    MY website is www.sourceforherbs.com

    Some help would be appreciated.

  2. #2
    Join Date
    Feb 2006
    Posts
    230
    Plugin Contributions
    0

    css problem Re: Help needed with Horizontal Line in product listing

    Still need help!!! Please, anybody????

  3. #3
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Help needed with Horizontal Line in product listing

    The new, all and featured listings are built by completely different template files, and have few if any of the same classes/ids to style. Your site/template appears to be built on a Zen Cart v1.3.7 base, and may not have a feature built into current v1.3.9 code
    (* @version $Id: tpl_modules_products_new_listing.php 6096 2007-04-01 00:43:21Z ajeh $)
    which puts a <hr> between each product in the listing. Your template has nothing unique enough to style a border between products in those listings. You would need to edit /includes/templates/your_template/tpl_modules_products_new_listing.php and its siblings to add the <hr>. The v1.3.9 file looks like this near the bottom:
    PHP Code:
                    echo $display_products_description;
                  ?>
                </td>
              </tr>
    <?php ?>

              <tr>
                <td colspan="3"><hr /></td>
              </tr>
    <?php
          $products_new
    ->MoveNext();
        }
      } else {

  4. #4
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Help needed with Horizontal Line in product listing

    Seems I just didn't look hard enough for the needle. Your template has the <hr> between each product, but it is set to white so that it is essentially invisible unless you cilck on just the right spot to inspect, or go through view source.

    You can edit this line in your stylesheet.css

    hr{ height: 1px; margin-top: 5px; border: none; border-bottom: 1px solid #ffffff; }

    or if you don't want to change all <hr> from white, you can add a rule like

    #newProductsDefault hr, #featuredDefault hr, #allProductsDefault hr {color: #aabbcc;}

  5. #5
    Join Date
    Feb 2006
    Posts
    230
    Plugin Contributions
    0

    Default Re: Help needed with Horizontal Line in product listing

    Thanks for your help will try it out.

  6. #6
    Join Date
    Feb 2006
    Posts
    230
    Plugin Contributions
    0

    Default Re: Help needed with Horizontal Line in product listing

    gjh42.

    Thanks for your help.

    I've succeeded in getting the correct horizontal rules between products for "new products listing" and "featured products listing" and category products listings.

    BUT, "all products" listing has an EXTRA hr above and below the product descriptions.

    See my site www.sourceforherbs.com

    Thanks again

 

 

Similar Threads

  1. how to align buttons on the product listing page on the same horizontal line?
    By evaky in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 17 Oct 2011, 05:14 PM
  2. Replies: 5
    Last Post: 17 Feb 2010, 05:13 PM
  3. Horizontal Line between Product on Shopping Cart
    By Best Price Accessori in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 29 Nov 2009, 05:00 PM
  4. adding horizontal line between products in listing
    By guybarles in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 9 Aug 2009, 06:51 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