Hello friends, how can I adjust the space between these sections?
Topic summary
A user seeks help adjusting spacing between sections on their Shopify product page, sharing a screenshot showing the layout issue.
Problem: Excessive vertical spacing between product title and review widget elements.
Solutions Provided:
-
Rahul_dhiman’s approach (accepted solution):
- Navigate to: Online Store → Themes → Actions → Edit Code → Assets → section-main-product.css
- Add CSS code targeting
.product__titlewith negative margins - Includes before/after screenshot showing reduced spacing
-
ZestardTech’s alternative:
- Edit base.css file instead
- Provides CSS targeting the product reviews rating widget specifically
- Adjusts margin and display properties
Resolution: The user confirmed Rahul_dhiman’s solution successfully resolved the spacing issue. Both solutions involve custom CSS modifications to theme files.
@NikosBat Can you please send me your store URL?
Thanks for replying Walstar, so how do I adjust that? Do I need to write a code?
Hello DelightCart and thanks for replying, here is the url and password:
https://www.nistore.de/products/nistore™-winterhandschuhe, nikthe
Hello @NikosBat
Go to online store ----> themes ----> actions ----> edit code ----> assets ----> section-main-product.css
add this code at the end of the file and save.
.product__title>* {
margin: -23px 0px -8px 0px !important;
}
result
If this was helpful, hit the like button and accept the solution.
Thanks
Hello @NikosBat ,
Here are the steps to apply the necessary changes in your Shopify store:
- In your Shopify Admin, navigate to Online Store > Themes > Actions > Edit Code.
- Locate Asset > base.css and paste the following code at the bottom of the file:
.product__info-wrapper [id*="_product_reviews_rating_widget"] {
margin: 20px 0;
display: flex;
}
.product__info-wrapper [id*="_product_reviews_rating_widget"]>div {
width: 100%;
display: flex;
}
.product__info-wrapper [id*="_product_reviews_rating_widget"]>div .dr-relative {
width: 100%;
display: flex;
}
Rahul_dhiman thanks for replying, that solved my problem
Thanks for helping me ZestardTech I appreciate it.
Happy to help you…!!!

