X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Vertical Devider Question (https://forum.x-cart.com/showthread.php?t=31847)

yuichi 06-14-2007 09:17 PM

Vertical Devider Question
 
I feel like I am stuck every night.... and yet I have to ask for help again..:oops:

I have a 3col featured product table with product images and was wondering how I can place a vertical devider between each products (something like on target.com) ?

My initial idea was to place a <div> around each featured item and have css draw a border on the right side, so that when it loops, it will generate a vertical bar each time it loops.
But then, the problem was that instead of having 2 vertical divider, it will have 3 vertical devider..

Here is how I wanted to display.. ( I made this in photoshop )
http://farm1.static.flickr.com/227/550590196_f2b3952d19.jpg
I hope the picture can provide a clear idea....
Any idea guys? :oops:

inebriate 06-14-2007 10:52 PM

Re: Vertical Devider Question
 
use {cycle} in addition to the css (needs to be done within the template and not the style sheet)

ie:

border-right:{cycle values="1px solid #000000,1px solid #000000,none"}

carpeperdiem 06-15-2007 03:41 AM

Re: Vertical Devider Question
 
Smarty rocks! Just brilliant.

yuichi 06-15-2007 06:46 PM

Re: Vertical Devider Question
 
Inebiate, you ROCK!!
It worked like a charm!!!
Thank you very much!!!!

balinor 06-15-2007 06:49 PM

Re: Vertical Devider Question
 
And people wonder why X-Cart uses Smarty....this is a perfect example :)

yuichi 06-15-2007 08:11 PM

Re: Vertical Devider Question
 
I am falling in LOVE with smarty! There are LOTS to be learned!!
I appreciate for your help all the time!


All times are GMT -8. The time now is 03:24 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.