Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    Join Date
    Jan 2008
    Posts
    84
    Plugin Contributions
    0

    Default products dividing line

    Ok I am trying to get my product listing page to look like http://shop.forge-games.co.uk/units-53-c.asp

    Right now I have a single line dividing each product

  2. #2
    Join Date
    Nov 2006
    Location
    Dartmouth, NS Canada
    Posts
    2,378
    Plugin Contributions
    0

    Default Re: products dividing line

    Well, I'm kind of guessing at your intent, but here goes...

    Look in your style sheet for the two definitions called

    .productListing-odd
    .productListing-even

    Apply a border to those classes, and give them margins to space them away from each other as needed.

    Rob

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

    Default Re: products dividing line

    Also apply padding to space the border out from the contents of each box.

  4. #4
    Join Date
    Jan 2008
    Posts
    84
    Plugin Contributions
    0

    Default Re: products dividing line

    ok RT close to what I wanted but perhaps I was off on the explaination the only line I could find close to whay you were suggesting was this

    /*Product Listing*/
    .productListing-data {
    border-top: 1px solid #000000;
    padding: 0.50em 0em 0.50em 0em;
    }

    The look again I was going for was this http://shop.forge-games.co.uk/units-53-c.asp

    i the center the way each product has a box around it. to me this looks cleaner than the sigle line I have on mine http://darktowerhobbies.com/index.ph...&cPath=3_15_11

    I hope I have clarified this

  5. #5
    Join Date
    Nov 2006
    Location
    Dartmouth, NS Canada
    Posts
    2,378
    Plugin Contributions
    0

    Default Re: products dividing line

    You will need to style the two classes I mentioned...

    .productListing-odd
    .productListing-even

    If they're not in your style sheet now, just add them and style as directed. Not all the styles available in the Zen code are actually in the style sheet. They're in the code so you can use them if you need to.

    Here's how I've styled them in one of my sites. This gives two different background colors for the alternating listings...

    .productListing-even { background-color: #DFECF8; }
    .productListing-odd { background-color: #E6F0D2; }


    As you can see I haven't used any margin because I wanted them to snug up to each other. And I didn't need the padding mentioned above by gjh42 because, I guess, the elements within each row have their own margins already. (There are many ways to reach the same goal.)

    You probably want something like...

    .productListing-even, .productListing-odd {
    background-color: white;
    border-color: black;
    border-width: 2px;
    margin: 5px;
    padding: 5px;
    }

    Adjust to taste.

    HTH

    Rob

  6. #6
    Join Date
    Jan 2008
    Posts
    84
    Plugin Contributions
    0

    Default Re: products dividing line

    I added everything you suggested and nothing happened no border ever appeared no matter what I did.

    I sort of got it going by adding the border bottom to the style sheet

    .productListing-data {
    border-top: 1px solid #000000;
    border-bottom: 1px solid #000000;
    /* padding: 0.50em 0em 0.50em 0em;*/
    }
    but I can't separate them or make a border appear on the left or right side.

  7. #7
    Join Date
    Nov 2006
    Location
    Dartmouth, NS Canada
    Posts
    2,378
    Plugin Contributions
    0

    Default Re: products dividing line

    You're right, sort of.

    When I add my first example to your stylesheet, the one with just a different color for each row, the colors change immediately on your page. (I'm using Firebug to do that. Don't worry, it only changes here in my browser.)

    But when I put in my second example, nothing happens. This tells me that something else is over-riding the changes. Any chance you have more than one stylesheet in use?

    Rob

  8. #8
    Join Date
    Jan 2008
    Posts
    84
    Plugin Contributions
    0

    Default Re: products dividing line

    I am using a template glass black I got it on here

  9. #9
    Join Date
    Jan 2008
    Posts
    84
    Plugin Contributions
    0

    Default Re: products dividing line

    sorry typo gloss black

  10. #10
    Join Date
    Oct 2006
    Location
    Alberta, Canada
    Posts
    4,571
    Plugin Contributions
    1

    Default Re: products dividing line

    For Borders around Product Listings, see if this works for you.

    .productListing-data {
    padding: 10px;
    border: 1px solid black;
    }


    If you wanted to use different colors for each product then use:

    .productListing-even {
    padding: 10px;
    border: 1px solid black;
    }

    .productListing-odd {
    padding: 10px;
    border: 1px solid grey;
    }


    A good habit to get into when adding new declarations is to put them at the bottom of your Stylesheet, then you know they come last.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Simple dividing line in category navigation
    By mek113 in forum Addon Templates
    Replies: 1
    Last Post: 1 Nov 2011, 07:51 AM
  2. Show only two products per line in New Products
    By anksrox in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 23 Apr 2009, 12:30 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