this is my website https://swawe.store/products/embroidered-porsche-gt3rs-t-shirt
I want the description box look like this with white background like this website https://bluorng.com/products/crystal-white-t-shirt-copy?pr_prod_strat=jac&pr_rec_id=e4d71ad72&pr_rec_pid=9431594303768&pr_ref_pid=9431865491736&pr_seq=uniform on phone
Topic summary
A user wants to change the background color of a product description box to white on the mobile version of their Shopify store, referencing another website as an example.
Solutions Provided:
Two community members offered CSS code solutions:
-
First approach: Add CSS to
section-main-product.cssfile targeting the.tab-listelement withbackground: white !importantwithin a media query for screens under 749px -
Second approach: Insert CSS code in
theme.liquidfile before the</body>tag, targeting.product .tab-listwithbackground: #fff !importantfor screens under 767px
Follow-up Issue:
The original poster reported the first solution didn’t work and requested additional help to reduce the gap between the “Add to Cart” button and the description box on mobile.
A modified CSS solution was provided targeting .product__info-container .product-form with margin: 2.5rem 0 0 0 !important to address the spacing issue.
Status: The discussion remains open with no confirmation that either solution successfully resolved the issues.
Hello @attackon
Go to online store ----> themes ----> actions ----> edit code ---->assets ----> section-main-product.css
add this code at the end of the file.
@media (max-width: 749px) {
.tab-list {
background: white !important;
}
}
result
If this was helpful, hit the like button and accept the solution.
Thanks
Hello @attackon
You can add code by following these steps
-
Go to Online Store → Theme → Edit code.
-
Open your theme.liquid file
-
Paste the below code before on theme.liquid
Was my reply helpful? Click Like to let me know!
Was your question answered? Mark it as an Accepted Solution.
didn’t work
can you also decrease the gap coming on phone between add to cart and and this description box
You can add code by following these steps
-
Go to Online Store → Theme → Edit code.
-
Open your theme.liquid file
-
Paste the below code before on theme.liquid
Was my reply helpful? Click Like to let me know!
Was your question answered? Mark it as an Accepted Solution.




