Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Help with overlapping images (featured products)

Help with overlapping images (featured products)

Locked

Views: 2,102

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
10 Jun 2008, 3:17 PM
#1
twdhosting avatar

twdhosting

Zen Follower

Join Date:
Mar 2005
Posts:
119
Plugin Contributions:
0

Help with overlapping images (featured products)

I have been working on the following site https://www.stock-basket.com and although it is still largely unfinished I have a very annoying problem at this early stage!

I wanted the featured box on the frontpage to only have 2 items and to be aligned on the right of the define_main_page etc. I have managed this changing the default ordering for the frontpage items in tpl_index_default.php so that it now goes: Featured Products > Define_Main_Page > New products and then added this to the stylesheet:

#featuredProducts {
float:right;
width:25em;

}

.centerBoxContentsNew img {
border: 1px solid #000;
}

.centerBoxContentsFeatured img {
margin: 2em 0;
padding:1% 2% 0 2%;

}

This has floated the featured products box to the right of the main_page text but the images are horribly aligned and overlap - any ideas please?

Thanks

10 Jun 2008, 4:20 PM
#2
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Help with overlapping images (featured products)

I suspect that you've told the featured products box to display 4 across, so its only allocating 25% of the 25em width to each image. That's not enough, so they overlap ... except in IE6 which isn't clever enough to find that solution to the "too little space" space. It can't display your png product images properly either, and gives them an ucky blue background.

10 Jun 2008, 5:23 PM
#3
twdhosting avatar

twdhosting

Zen Follower

Join Date:
Mar 2005
Posts:
119
Plugin Contributions:
0

Re: Help with overlapping images (featured products)

Nope - I've just double checked and the featured box is set to display 2 products...????

I wasn't aware of the IE6 / PNG problem, eventually I want to add a dark grey background image "under" the main page content so that it shows through the images transparacy... But that's my next problem :)

10 Jun 2008, 7:04 PM
#4
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Help with overlapping images (featured products)

twdhosting:

Nope - I've just double checked and the featured box is set to display 2 products...????I take it that's the admin setting. Default Zen Cart divides this figure into 100% to get them width of each product box. You template however, is coming up with 25% instead of 50% which makes me wonder whether your template's author has hard-coded the 25%. In which case you would need to find where and fix it.

twdhosting:

I wasn't aware of the IE6 / PNG problem, eventually I want to add a dark grey background image "under" the main page content so that it shows through the images transparacy... But that's my next problem :)Just bear in mind that there is no transparency for png files if your visitors are using IE6, and that the flashier the design that assumes it, usually the worse it looks for this diminishing but still significant audience.

10 Jun 2008, 8:15 PM
#5
twdhosting avatar

twdhosting

Zen Follower

Join Date:
Mar 2005
Posts:
119
Plugin Contributions:
0

Re: Help with overlapping images (featured products)

Thanks Kuroi - and your a genius... :)

Well actually the 4 columns were not hard coded but it got me to looking harder at the zen admin settings - and I had missed one: "Featured Products Columns per Row" - I had altered the setting under "maximum values" for the featured products box but this one was hidden under "Index Listing".

As for the IE6 issue... I'm not sure what to do!