Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Aligning Add to Cart with Attributes

Aligning Add to Cart with Attributes

Views: 729

Results 1 to 5 of 5
28 Sep 2012, 10:14 PM
#1
ak6000 avatar

ak6000

Zen Follower

Join Date:
Apr 2010
Posts:
102
Plugin Contributions:
0

Aligning Add to Cart with Attributes

Hi Folks,

I like to align my quantity and Add To Cart button with my attributes in Product_info page.

Currently the attributes are under the Product Name and Add to Cart button is aligned to the right.

How can I align all items in product_info page in one area?

Appreciate any help you can give me.

29 Sep 2012, 2:44 AM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Aligning Add to Cart with Attributes

A link to see this will assist

30 Sep 2012, 4:34 AM
#3
ak6000 avatar

ak6000

Zen Follower

Join Date:
Apr 2010
Posts:
102
Plugin Contributions:
0

Re: Aligning Add to Cart with Attributes

Hi Kobra,

Thanks for your reply. Here is a link for product info page:
http://s415710195.onlinehome.us/catalog/index.php?main_page=product_info&cPath=116_133_134&products_id=288

As you can see the two attributes, Size and Color, are aligned under Product Title and Price. The Quantity and Add To Cart buttons are aligned to right.

In the CSS, I changed the float in #cardAdd to left, but that pushed both quantity and add to cart to far left, right under the image. What I like to do is align them with attributes.

Thanks for your help.

30 Sep 2012, 5:36 AM
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Aligning Add to Cart with Attributes

Try editing this line in your stylesheet.css file

#cartAdd {text-align: center;margin: 1em 0em 0em 17em ;border: 0px solid #000;padding: 1em;float:left;}
3 Oct 2012, 3:37 AM
#5
ak6000 avatar

ak6000

Zen Follower

Join Date:
Apr 2010
Posts:
102
Plugin Contributions:
0

Re: Aligning Add to Cart with Attributes

Sorry for getting back to you a bit late. I tried your recommendation and it works fine for that specific page, however, it mess ups all other product pages!

I tried using different setting and playing with offsets but it is just not working.

I believe this is due to the size of image and the fact that some of the products don't have any attributes.

With that in mind, is there a way to move Product Price and attributes to the Right rather than Add to Cart button to the left? I assume it should be easier to line up all items this way.

Thanks for your time.