Align contents in quick options product popup

Hello,

I have an issue about center all contents into popup of quick add product.I have already change the css to align all content but the result is like this on computer only (on smartphone all elements are actually center) :

The same issue is present on product information page about share link on computer and smartphone too:

This is the code that i have add to align center :

In the code file section-main-product.css :

.product {
margin: 0 auto;
text-align: center;

}

In the code file base.css :

.quick-add-modal {

text-align: center;
}

.quick-add-modal__content-info {
text-align: center;
}

1 Like

I have also add this code to base.css

quantity-input.quantity {

margin: 0 auto;
text-align: center;

}

Hey @GR9

Welcome to Shopify Community! Can you share your Store URL so I can have a look on it? Also, if you have password enabled then please share the password as well. Your cooperation would be greatly appreciated.

Best Regards,
Moeed

Hey !

thank you.

This is my store url: softanime.fr

password: Tunisie93

Hi @GR9

Check this one.

From your Shopify admin dashboard, click on ā€œOnline Storeā€ and then ā€œThemesā€.

Find the theme that you want to edit and click on ā€œActionsā€ and then ā€œEdit codeā€.

In the ā€œAssetsā€ folder, click on ā€œbase.css, style.css or theme.cssā€ file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:

.share-button {
    display: flex;
    justify-content: center;
}
.product-form__input {
    max-width: 100% !important;
}
@media only screen and (max-width: 749px){
    product-form.product-form {
    display: flex;
    justify-content: center;
}
}

And save.

Result:

Please don’t forget to Like and Mark Solution to the post that helped you. Thanks!

1 Like

Thanks ! this is exactly what i needed.

1 Like

Good to know! Welcome. :blush: