Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1248481

    Hello support, I added an “Add to Cart button” but the width is too long. Is there a way to add a quick CSS to centre the button add reduce its width to a reasonable size instead of full width?

    I have attached my test page

    #1248543

    Hey daakijoshua,

    Add this to quick css:

    .product_type_simple.add_to_cart_button{
    max-width:150px!important;
    margin:auto!important;
    }

    Best regards,
    Jordan Shannon

    #1248996

    Thanks so much Jordan, this worked!

    #1249034

    Hi daakijoshua,

    Glad we could help :)

    If you need further assistance please let us know.
    Best regards,
    Victoria

    #1249625

    Hello support, I would to centre the button on the shop page. The button is only centered on the product slider only. See private content

    #1249808

    Hi,

    Add this to quick css as well:

    .button.product_type_simple.add_to_cart_button.ajax_add_to_cart {
        max-width: 100%!important;
        margin: auto 0!important;
        width: 100%!important;
    }

    Best regards,
    Jordan Shannon

    #1251078

    Thanks Jordan, however this makes the buttons full width, I would like to have the buttons centered but not full width. I think like the previous 150px.

    #1251310

    Hi,

    Please try this CSS instead:

    .button.product_type_simple.add_to_cart_button.ajax_add_to_cart {
        width: 150px;
        display: table;
        margin: 0 auto !important;
        float: none;
    }

    Best regards,
    Rikard

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.