Results 1 to 8 of 8
  1. #1
    Join Date
    Apr 2007
    Location
    Dayton, Ohio
    Posts
    682
    Plugin Contributions
    0

    Default Black border box around product rows?

    Hi. I am trying to put a 1px black border box around each product area. Please refer to this page: http://www.lasilhouettelingerie.com/shop/bodysuits-c-70

    As you can see the odd and even rows don't currently have a 1px black border and the images are also touching (so I think I would also like to add a little padding between products).

    I can see in my source code for the page above I have this:
    Code:
    <tablewidth="100%" border="0" cellspacing="0" cellpadding="0" id="cat70Table" class="tabTable">
    <trclass="productListing-rowheading">
    <thclass="productListing-heading" align="center" scope="col" id="listCell0-0">Product Image</th>
    <thclass="productListing-heading" scope="col" id="listCell0-1"><ahref="http://www.lasilhouettelingerie.com/shop/index.php?main_page=index&amp;cPath=70&amp;page=1&amp;sort=2a" title="Sort products descendingly by Item Name" class="productListing-heading">Item Name-</a></th>
     
    <thclass="productListing-heading" align="right" width="125" scope="col" id="listCell0-2"><ahref="http://www.lasilhouettelingerie.com/shop/index.php?main_page=index&amp;cPath=70&amp;page=1&amp;sort=3a" title="Sort products ascendingly by Price" class="productListing-heading">Price</a></th>
     
     
     
      </tr>
     
     
     
      <trclass="productListing-odd">
     
     
     
       <tdclass="productListing-data" align="center"><ahref="http://www.lasilhouettelingerie.com/shop/index.php?main_page=product_info&amp;cPath=70&amp;products_id=405"><imgsrc="images/Cass Cami.gif" alt="Cass and Co. Control Camisole" title=" Cass and Co. Control Camisole " width="63" height="80" class="listingProductImage" /></a></td>
     
     
     
       <tdclass="productListing-data"><h3class="itemTitle"><ahref="http://www.lasilhouettelingerie.com/shop/index.php?main_page=product_info&amp;cPath=70&amp;products_id=405">Cass and Co. Control Camisole</a></h3><divclass="listingDescription">This control cami provides support and moderate slimming and can be worn as inner or outerwear, layered, or as exercise wear. A great fit for all...</div></td>
     
     
     
       <tdclass="productListing-data" align="right">$72.00<br /><br /><ahref="http://www.lasilhouettelingerie.com/shop/index.php?main_page=product_info&amp;cPath=70&amp;products_id=405">... more info</a><br /><br /></td>
     
     
     
      </tr>
     
     
     
      <trclass="productListing-even">
     
     
     
       <tdclass="productListing-data" align="center"><ahref="http://www.lasilhouettelingerie.com/shop/index.php?main_page=product_info&amp;cPath=70&amp;products_id=660"><imgsrc="images/75015.jpg" alt="Wolford Berlin Body" title=" Wolford Berlin Body " width="59" height="80" class="listingProductImage" /></a></td>
     
     
     
       <tdclass="productListing-data"><h3class="itemTitle"><ahref="http://www.lasilhouettelingerie.com/shop/index.php?main_page=product_info&amp;cPath=70&amp;products_id=660">Wolford Berlin Body</a></h3><divclass="listingDescription">Soft cotton against the skin and a ######## sheen on the outside. The purest interpretation of luxury. Color: Black (We have this item in stock! Please...</div></td>
     
     
     
       <tdclass="productListing-data" align="right">$220.00<br /><br /><ahref="http://www.lasilhouettelingerie.com/shop/index.php?main_page=product_info&amp;cPath=70&amp;products_id=660">... more info</a><br /><imgsrc="includes/templates/template_default/buttons/english/button_sold_out_sm.gif" alt="Sold Out" title=" Sold Out " width="51" height="18" /><br /><br /></td>
     
     
     
      </tr>
     
     
     
      <trclass="productListing-odd">
     
     
     
       <tdclass="productListing-data" align="center"><ahref="http://www.lasilhouettelingerie.com/shop/index.php?main_page=product_info&amp;cPath=70&amp;products_id=650"><imgsrc="images/string body cape.jpg" alt="Wolford Cape Town String Body" title=" Wolford Cape Town String Body " width="59" height="80" class="listingProductImage" /></a></td>
     
     
     
       <tdclass="productListing-data"><h3class="itemTitle"><ahref="http://www.lasilhouettelingerie.com/shop/index.php?main_page=product_info&amp;cPath=70&amp;products_id=650">Wolford Cape Town String Body</a></h3><divclass="listingDescription">A light cotton blouse with modern details and a practical feature: it can't slip out of place, because the seamlessly attached string body holds the...</div></td>
    I would assume I would find this code to add the border:
    Code:
    productListing-odd
    productListing-even
    productListing-rowheading
    but these specifications are not in my styelsheet (nor the default stylesheet).

    The only .productListing items I found were:
    Code:
    .productListing-data
    .productListing-rowheading
    .productListing-heading
    I don't understand why these items show in my source code but do not show in my css stylesheet. Please help me add a 1px black border around each producst listing (with a little padding between products).

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Black border box around product rows?

    What is the link to your page?
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Apr 2007
    Location
    Dayton, Ohio
    Posts
    682
    Plugin Contributions
    0

    Default Re: Black border box around product rows?

    Here is a link to the products page:
    http://www.lasilhouettelingerie.com/shop/bodysuits-c-70

  4. #4
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Black border box around product rows?

    OPPS! Saw the link
    I don't understand why these items show in my source code but do not show in my css stylesheet.
    Not all tags are in the stylesheet as it would be huge if they were

    Try adding this to the bottom of your stylesheet and adjust to suit
    Code:
    TR.productListing-odd {
            background-color: #ffffff;
        height: 1.5em;
        vertical-align: top;
            }
    
    TR.productListing-even {
        background-color: #9a9a9a;
        height: 1.5em;
        vertical-align: top;
            }
    Zen-Venom Get Bitten

  5. #5
    Join Date
    Apr 2007
    Location
    Dayton, Ohio
    Posts
    682
    Plugin Contributions
    0

    Default Re: Black border box around product rows?

    Sorry to do this to you Kobra. I added your code to the bottom of my sytlesheet like you said, and yes the odd and even rows did change color (so I know this setting should also be able to add a black border and space between product listings). As of right now each image touches so it looks sloppy.

    I added this:
    Code:
    TR.productListing-odd {
        background-color: #FFFFFF;
        height: 1.5em;
        vertical-align: top;
     margin-bottom: 4em;
     border: 1px solid #000000;
     }
    TR.productListing-even {
        background-color: #FFFFFF;
        height: 1.5em;
        vertical-align: top;
     margin-bottom: 4em;
     border: 1px solid #000000;
     }
    Thinking I could space in between each odd and even row and add a black border around each product, but nothing happens still. What could I be doing wrong here?

  6. #6
    Join Date
    Apr 2007
    Location
    Dayton, Ohio
    Posts
    682
    Plugin Contributions
    0

    Default Re: Black border box around product rows?

    Ok. I have the padding by changing to this:
    Code:
    .centeredContent, TH, #cartEmptyText, #cartBoxGVButton, #cartBoxEmpty, #cartBoxVoucherBalance, #navCatTabsWrapper, #navEZPageNextPrev, #bannerOne, #bannerTwo, #bannerThree, #bannerFour, #bannerFive, #bannerSix, #siteinfoLegal, #siteinfoCredits, #siteinfoStatus, #siteinfoIP, .center, .cartRemoveItemDisplay, .cartQuantityUpdate, .cartQuantity, .cartTotalsDisplay, #cartBoxGVBalance, .leftBoxHeading, .centerBoxHeading,.rightBoxHeading, .productListing-data, .accountQuantityDisplay, .ratingRow, LABEL#textAreaReviews, #productMainImage, #reviewsInfoDefaultProductImage, #productReviewsDefaultProductImage, #reviewWriteMainImage, .centerBoxContents, .specialsListBoxContents, .categoryListBoxContents, .additionalImages, .centerBoxContentsSpecials, .centerBoxContentsAlsoPurch, .centerBoxContentsFeatured, .centerBoxContentsNew, .gvBal, .attribImg {
     text-align: center;
     padding-top: 2em;
     }
    Still have yet to find out where to add the black border (so it goes around the whole product (i.e. image, title, description, price, and add to cart).

  7. #7
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Black border box around product rows?

    You added padding to all items and should have seperated this out
    Code:
    td .productListing-data {
            padding: 0em 0em 1em 0em;
            }
    You will not like the border as it will create boxes inline around each element
    Zen-Venom Get Bitten

  8. #8
    Join Date
    Apr 2007
    Location
    Dayton, Ohio
    Posts
    682
    Plugin Contributions
    0

    Default Re: Black border box around product rows?

    Ok I was able to seperate that out. I see what you mean about seperating that item out.

 

 

Similar Threads

  1. v150 Black border around 'Add to cart' button
    By dwsl2012 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 2 Oct 2012, 10:00 AM
  2. remove border around around images (not image border)
    By Otha in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 23 Aug 2010, 06:03 AM
  3. How do I remove excess black/white border around titles
    By katiekin in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 16 Apr 2008, 09:44 PM
  4. Making Border around Prod. Pics using Gloss Black Temp.
    By REEFROCKS in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 26 Feb 2007, 10:39 AM
  5. Nifty Zen categories box overshooting black border
    By scottyg in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 16 Jan 2007, 03:53 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