If this is your first visit, check our documentation. To post, register or login.
Forums / Templates, Stylesheets, Page Layout / line up add to cart box and button

line up add to cart box and button

Started by jewelsnpearls on 20 Mar 2011, 8:58 AM · Views: 789

Results 1 to 6 of 6
20 Mar 2011, 8:58 AM
#1
jewelsnpearls avatar

jewelsnpearls

New Zenner

Join Date:
Feb 2011
Location:
Hong Kong
Posts:
29
Plugin Contributions:
1

line up add to cart box and button

In the template I use, the CartAdd contains the Add to Cart form field, the Add to Cart button and the AddThisButton (FB twitter etc).

I want to line up these 3 to one line, but whatever I do, the add to cart form field stays on top of the other two.

I cannot find where the layout of the box is controlled...

20 Mar 2011, 12:46 PM
#2
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,140
Plugin Contributions:
56

Re: line up add to cart box and button

A link to your site will help people help you ...

21 Mar 2011, 5:23 AM
#3
jewelsnpearls avatar

jewelsnpearls

New Zenner

Join Date:
Feb 2011
Location:
Hong Kong
Posts:
29
Plugin Contributions:
1

Re: line up add to cart box and button

Sorry, my site is not live yet. we've been hacked lately, so I'm working offline on this. And currently zen-cart.com is being blocked by my local Chinese provider again, so I'm working through a proxy, which doesn't allow me to upload a picture here

But the thing is: it is the same everywhere you look:
Either with or without frame:

| Add to Cart: [1 ] |
| [Add to cart] (button) |
| [AddThis FB Twitter etc] |

What I want is:

| [1 ] [Add to cart] [AddThis Fb Twitter etc] |

^box ^button ^button

I know how to get rid of the text in front of the button, I used the developers tool kit to locate the proper language PHP file, copied that to a template specific folder and edited it.

I also got the last two in one line. ([Add to cart][AddThis...] but cannot get the box in the same line.

21 Mar 2011, 2:06 PM
#4
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,140
Plugin Contributions:
56

Re: line up add to cart box and button

You can try adding the following to the bottom of /includes/templates/YOURTEMPLATE/css/stylesheet.css:

#cartAdd br { display: none; }
#cartAdd input { float: left; }

That instructs the browser to not display the <br /> in the cartAdd box and to float all inputs (the quantity and add_to_cart button) to the left.

Without seeing your site, I can't help with the addThis button, but the solution would be similar (i.e. using float: left; in the CSS to float that element to line up with the add_to_cart button).

22 Mar 2011, 7:55 AM
#5
jewelsnpearls avatar

jewelsnpearls

New Zenner

Join Date:
Feb 2011
Location:
Hong Kong
Posts:
29
Plugin Contributions:
1

Re: line up add to cart box and button

Yeah! great! it works perfectly. Thanks a lot!

22 Mar 2011, 12:05 PM
#6
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,140
Plugin Contributions:
56

Re: line up add to cart box and button

Glad I could help!