variables for rules between products on product pages
Posted: Tue Jun 01, 2010 7:18 am
Need to figure out how to write code that creates a variable.
Please see this link:
http://www.stellaandjames.com/store/Necklaces.html
I have set up grids using CSS within a table.
Set up for three products in a row before returning to a new line. The first two on the left have CSS that places a rule on the right and bottom. The box on the right, just the bottom rule.
Which works fine until you get to the last row, and you DO NOT WANT a rule going across the bottom.
So I was thinking that it could be something like this:
Starting from left to right:
I'd set up panels for each scenario (with and without a bottom rule) So in CSS they might be titled:
left panel with rule
middle panel with rule
right panel with rule
left panel no rule
middle panel no rule
right panel no rule
Then on the product template, it would say something like:
FOR THE LEFT PANEL: if three or more products, use left panel with rule, else, use left panel no rule.
FOR THE MIDDLE PANEL: if two or more products, use middle panel with rule, else, use middle panel no rule
FOR THE RIGHT PANEL: if one or more products, use right panel with rule, else, use right panel no rule.
But I have no idea how to set this up: HELP PLEASE!!!
Please see this link:
http://www.stellaandjames.com/store/Necklaces.html
I have set up grids using CSS within a table.
Set up for three products in a row before returning to a new line. The first two on the left have CSS that places a rule on the right and bottom. The box on the right, just the bottom rule.
Which works fine until you get to the last row, and you DO NOT WANT a rule going across the bottom.
So I was thinking that it could be something like this:
Starting from left to right:
I'd set up panels for each scenario (with and without a bottom rule) So in CSS they might be titled:
left panel with rule
middle panel with rule
right panel with rule
left panel no rule
middle panel no rule
right panel no rule
Then on the product template, it would say something like:
FOR THE LEFT PANEL: if three or more products, use left panel with rule, else, use left panel no rule.
FOR THE MIDDLE PANEL: if two or more products, use middle panel with rule, else, use middle panel no rule
FOR THE RIGHT PANEL: if one or more products, use right panel with rule, else, use right panel no rule.
But I have no idea how to set this up: HELP PLEASE!!!