Forums / Templates, Stylesheets, Page Layout / Feature Products - List in 2 Columns on Index Page

Feature Products - List in 2 Columns on Index Page

Locked

Started by interactivewest on 1 Aug 2009, 9:33 PM · Views: 1,241

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
1 Aug 2009, 9:33 PM
#1
interactivewest avatar

interactivewest

New Zenner

Join Date:
Dec 2008
Location:
Aspen, CO
Posts:
25
Plugin Contributions:
0

Feature Products - List in 2 Columns on Index Page

Please view:
http://www.nhlfurniture.com/store/index.php

I'm running Zen Cart version 1.3.8a

I've turned on Feature Products in Store to appear on Index Page and added 2 products as Feature Products. I've gone to Admin - Configuration - Index Listing and set Featured Products Columns per Row to 2 yet products appear in separate rows. I've cleared cache but no luck.

I'm previewing in Firefox. Any ideas?

Gene Fourney | InteractiveWest
PO Box 4272 | Aspen, CO 81612
Email: [email protected]

2 Aug 2009, 9:23 PM
#2
niccol avatar

niccol

Totally Zenned

Join Date:
Apr 2009
Posts:
2,138
Plugin Contributions:
1

Re: Feature Products - List in 2 Columns on Index Page

It is because the two <div> that hold the pictures are set at 50% width of the containing <div> in the code. By the time you add margins/borders the two will not fit side by side in the space available.

In the past I have hunted down the 50% in the code for someone which took forever but have realised that an easier way of doing it is to add this to the bottom of the stylesheet! D'oh!

.centerBoxContentsFeatured{width:48% !important;}

You can adjust the 48% as you see fit. A slightly higher number will probably work but before you decide it definitely is OK check it in internet explorer as far back as IE6.

Nick
iszent.com

5 Aug 2009, 8:26 PM
#3
interactivewest avatar

interactivewest

New Zenner

Join Date:
Dec 2008
Location:
Aspen, CO
Posts:
25
Plugin Contributions:
0

Re: Feature Products - List in 2 Columns on Index Page

I would have never figured that out. Thanks - the stylesheet edit worked!

Gene Fourney | InteractiveWest
PO Box 4272 | Aspen, CO 81612
Email: [email protected]

5 Aug 2009, 8:33 PM
#4
niccol avatar

niccol

Totally Zenned

Join Date:
Apr 2009
Posts:
2,138
Plugin Contributions:
1

Re: Feature Products - List in 2 Columns on Index Page

No problem!

For a moment I thought I was going to a hockey site (NHL) - and as a Canadian on the other side of the Atlantic that made me smile!

Good luck

Nick
iszent.com