Zen Cart Logo
Forums / General Questions / Add to Cart Button pushing into left column

Add to Cart Button pushing into left column

Locked

Views: 1,773

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
26 Jun 2008, 4:16 PM
#1
mezloh avatar

mezloh

New Zenner

Join Date:
Jun 2008
Posts:
28
Plugin Contributions:
0

Add to Cart Button pushing into left column

I am having a problem with the layout of my product info page.
Everything seems to be align ok except for the add to card/Qty button. It pushes all the way over into the left column and it should be aligned to the right.

I haven't been able to find a solution anywhere in the forums the past 2 days, is there someone could lend me some assistance i would appreciate it.

Here is the link to the problem area, SITE

I have this problem with every product info page.

Thank You in advance

Trav

26 Jun 2008, 4:34 PM
#2
charmedbytina2 avatar

charmedbytina2

Totally Zenned

Join Date:
Mar 2007
Location:
AZ
Posts:
1,890
Plugin Contributions:
0

Re: Add to Cart Button pushing into left column

Add to cart looks fine in IE7. FF shows it peeking our from behind the left sidebox, as you indicated.

Not sure what the fix is, but this is the code block from your stylesheet.
Looks like it should go to the right. :blink:

#cartAdd (line 447)
{
width: 125px;
text-align: center;
margin-top: 10px;
margin-right: auto;
margin-bottom: 10px;
margin-left: auto;
float: right;
padding-right: 10px;

26 Jun 2008, 4:36 PM
#3
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Add to Cart Button pushing into left column

One problem is that you have hard-coded a width of 40px into #leftFloat, in tpl_product_info_display.php. From view source:

<div id="leftFloat" style="width:40px"><!--bof Main Product Image -->

Something else is making #leftFloat move to the left of its container, under the left sidebar, and #leftFloat has no styling in the stylesheet to make it float left correctly.

26 Jun 2008, 5:48 PM
#4
mezloh avatar

mezloh

New Zenner

Join Date:
Jun 2008
Posts:
28
Plugin Contributions:
0

Re: Add to Cart Button pushing into left column

My apologies I misread the dates and didn't know the answer was directed towrds me, thought it was an old post. i am going to check out the left float styling and see if that works. I didn't hard code 40px in there so i will have to get rid of it and see if that works.