Results 1 to 7 of 7
  1. #1
    Join Date
    Jul 2010
    Posts
    37
    Plugin Contributions
    0

    Default Centralise the add to cart button

    Hi all,

    Being new to zencart, (as in just 1 week new), I have found these forums extremely helpful in coming to terms with how it all works, I have found answers to pretty much everything so far, but I can't find an answer to this question.

    I am trying to centralise the price, add to cart value and the add to cart button. I am guessing it has to be done via CSS somehow (float: middle or something maybe) but I have absolutely no previous knowledge of any of this so am teaching myself as I go along, so any help would be appreciated. I had a look around my CSS files but I don't really know what I am looking for.

    Here is a link to a product page on my site (ignore the scruffy layout, I am just playing right now)

    http://cheekychile.com/index.php?mai...&products_id=1

    If you need me to paste any code the just let me know what you need :)

    Thnks in advance for any help you can give,
    Jas.

  2. #2
    Join Date
    Jul 2010
    Posts
    79
    Plugin Contributions
    0

    Default Re: Centralise the add to cart button

    In your css file.
    #cartAdd {
    float:center;
    }

  3. #3
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: Centralise the add to cart button

    float probably won't work, but text-align:center; should.

  4. #4
    Join Date
    Jul 2010
    Posts
    79
    Plugin Contributions
    0

    Default Re: Centralise the add to cart button

    Quote Originally Posted by stevesh View Post
    float probably won't work, but text-align:center; should.
    It is already set to float: right by default. The only problem is that if you are using a border, it stretches it across the product page.

  5. #5
    Join Date
    Jul 2010
    Posts
    37
    Plugin Contributions
    0

    Default Re: Centralise the add to cart button

    Thanks for the quick response, here is the entry in stylesheet_main.css is

    #cartAdd {}
    #cartAdd .cartAdd_indent{}
    #cartAdd .cartAdd_indent span{ font-family:Arial, Helvetica, sans-serif; font-size:11px; text-transform:uppercase; color:#0088cc; font-weight:bold; text-decoration:underline}
    #cartAdd .cartAdd_indent input.cart_quantity{width:56px; height:18px; background:#ffffff; color:#181c23; font-size:11px; margin-top:3px; border:solid 1px #e1e1e1}
    .padd1{padding-top:5px;}
    * html #cartAdd .cartAdd_indent .padd1{padding-top:6px;}

    where abouts would I add it ?

    Thanks again.

  6. #6
    Join Date
    Jul 2010
    Posts
    37
    Plugin Contributions
    0

    Default Re: Centralise the add to cart button

    Hi,

    Ok, thanks that worked great... (the text-align:center; bit)

    Now how do I do the same with the price ?

    Thanks again.

  7. #7
    Join Date
    Jul 2010
    Posts
    37
    Plugin Contributions
    0

    Default Re: Centralise the add to cart button

    I figured it out. I just added:

    #productPrices {
    text-align: center;
    }

    to my stylesheet.css

    Thanks for the help above.

 

 

Similar Threads

  1. v151 How do I replace the add-to-cart button with a PayPal *Donate* button?
    By picandnix in forum Addon Payment Modules
    Replies: 7
    Last Post: 29 Apr 2014, 02:52 PM
  2. Change the Add to Cart button to Buy Now button
    By dastudio in forum Customization from the Admin
    Replies: 1
    Last Post: 24 Nov 2010, 09:44 PM
  3. How do I replace the Buy Now button with an Add to Cart button?
    By OrcaSoul in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 19 Feb 2010, 05:36 AM
  4. how to add the add-to-cart-button to the new products box on the home page?
    By ebloger in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 10 Nov 2008, 10:30 AM
  5. ADD TO CART BUTTON , from bottom add it to the top
    By bobi in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 6 Aug 2008, 08:50 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg