Center add to cart and quantity and make them on same line

Hello

I would like to center the add to cart, and make the quantity box and the add to cart box same size.

Make it centered not stuck to the picture on the bottom? Picture attached and this is the link to my website www.mylittleworld.shop

Thanks a for the help!

2 Likes

@mylittleworld

yes, please try this code

  1. Go to Online Store->Theme->Edit code
  2. Asset->/theme.css ->paste below code at the bottom of the file.
.product-card + form {
    text-align: center;
    margin-bottom: 30px;
}

.product-card + form input.btn {
    width: 97%;
    margin-top: 10px;
}

@mylittleworld

  1. Go to Online Store->Theme->Edit code
  2. Asset->/theme.css ->paste below code at the bottom of the file.
.product-card + form {
    text-align: center;
    margin-bottom: 30px;
}

.product-card + form input.btn {
    width: 97%;
    margin-top: 10px;
}

Thanks!

It doesn’t change anything :disappointed_face:

@dmwwebartisan @KetanKumar it doesn’t change anything.

also how can I align all the quantities no matter how long the product name is?

Thanks for the help!

1 Like

@mylittleworld

sorry i can’t see code where did you add this code?

@mylittleworld
Kindly provide us collaboration access. so that we can help you to fix it.

there

@KetanKumar

Can you ask for a collaboration request via your Shopify partner account?

yes,

@mylittleworld
provide Collaborator request code

you can request access

@mylittleworld
Yes, I need collaboration code to request access.

Please open theme.css and find below class.

.btn {

Width: auto;

}

Instead of auto with set the it with below.

.btn {

Width: 241px;

}

@mylittleworld

Open the theme.css and find this class .btn

Change with from

width:auto;

to

width: 240px;

Hi, I want to make quantity and add to cart on the same line @DelightCart

Ok, Go to theme.css

You have to add the width as below.

input, textarea, select, .disclosure__toggle {

Width:80px;
}

nop still nothing @DelightCart

It should work. See attachment.