Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Column Width New Products in Empty Cart Page

Column Width New Products in Empty Cart Page

Locked

Views: 1,718

Results 1 to 9 of 9
This thread is locked. New replies are disabled.
14 Mar 2009, 6:54 PM
#1
limelites avatar

limelites

Totally Zenned

Join Date:
Jan 2009
Posts:
2,085
Plugin Contributions:
0

Column Width New Products in Empty Cart Page

Hi,

If you click on NEW PRODUCTS on my site, you'll see that the column width is controlled via my stylesheet using stylesheet like this:

.new_products {float: left;
width: 200px;
height: 285px;
text-align: center;
}

My problem is with when you click on Shopping Cart and your cart's empty... it will also show a New Products Page but if you're in IE7 you'll see that the column width is too narrow here and it forces the 4th pic down onto the next line.

Does anyone know how to set the column width in an empty cart page?

14 Mar 2009, 7:06 PM
#2
limelites avatar

limelites

Totally Zenned

Join Date:
Jan 2009
Posts:
2,085
Plugin Contributions:
0

Re: Column Width New Products in Empty Cart Page

I tried making the images a tad smaller, but it has no effect, somehow I need to narrow the actual columns?

14 Mar 2009, 8:01 PM
#3
limelites avatar

limelites

Totally Zenned

Join Date:
Jan 2009
Posts:
2,085
Plugin Contributions:
0

Re: Column Width New Products in Empty Cart Page

Very strange, even when I set mainWrapper to 1500px (just to see if it's a page width problem) the 4th image is still forced onto the next line....

It's only happening in IE.... FF is perfect.... anyone have any idea what it can be?

14 Mar 2009, 8:36 PM
#4
tony_sar avatar

tony_sar

Totally Zenned

Join Date:
Jul 2006
Location:
Montreal, Canada
Posts:
2,276
Plugin Contributions:
0

Re: Column Width New Products in Empty Cart Page

try this . hopefully will help out in IE ..

#whatsNew {stylesheet.css (line 518)
padding-left:0;
}

add

display:inline;

see if this works .

14 Mar 2009, 8:48 PM
#5
limelites avatar

limelites

Totally Zenned

Join Date:
Jan 2009
Posts:
2,085
Plugin Contributions:
0

Re: Column Width New Products in Empty Cart Page

tony_sar you should change your name to tony_star...... you have no idea!! I've spent the last three hours on that and you get it in 2 secs. flat!!

Seriously, that's the 3rd or 4th time you've helped me... I think I love you :-) Thanks a gazillion!!!!

14 Mar 2009, 8:49 PM
#6
tony_sar avatar

tony_sar

Totally Zenned

Join Date:
Jul 2006
Location:
Montreal, Canada
Posts:
2,276
Plugin Contributions:
0

Re: Column Width New Products in Empty Cart Page

:blush: no problemo :blush:

14 Mar 2009, 8:51 PM
#7
limelites avatar

limelites

Totally Zenned

Join Date:
Jan 2009
Posts:
2,085
Plugin Contributions:
0

Re: Column Width New Products in Empty Cart Page

while we're on the subject of this layout... do you know how I set this page

To be the same as this page

...... in so far as:

  • manufacturer
  • model
  • price

as opposed to:

  • product name
  • price

????????

25 Mar 2009, 5:10 PM
#8
limelites avatar

limelites

Totally Zenned

Join Date:
Jan 2009
Posts:
2,085
Plugin Contributions:
0

Re: Column Width New Products in Empty Cart Page

tony_sar:

try this . hopefully will help out in IE ..

#whatsNew {stylesheet.css (line 518)
padding-left:0;
}

add

display:inline;

see if this works .
Hi Tony, been trying to replicate this on my Monthly Specials view but to no avail.

It worked a treat on new products, but I've now set my homepage to display monthly specials and it's doing this silly 3,1,3,1,3,1 images per row in IE7 again.

To what part of my Stylesheet do I add display:inline; to make the rows display as 4,4,4,4,4,4 as I can't seem to find it? Been looking for over an hour but you'd probably know immediately :-)

25 Mar 2009, 5:43 PM
#9
limelites avatar

limelites

Totally Zenned

Join Date:
Jan 2009
Posts:
2,085
Plugin Contributions:
0

Re: Column Width New Products in Empty Cart Page

OK, solved it :-)

.centerBoxWrapper, .tabTable {
padding: 0px;
height: 1%; /do not remove- IEhack/
margin-bottom: 1em;
line-height:1.4;
display: inline;

/* background:#ffffff url('../images/content-bg.jpg') 0 28px repeat-x; */
}