For phone version only, on home page featured collection, how to reduce the space between heading and image?
Theme: Prestige
Website: https://prettycious.com/
A user seeks to reduce excessive spacing between a heading and image in the featured collection section on mobile devices for the Prestige theme.
Problem:
Solutions Attempted:
theme.css targeting .section-stack with reduced gap and margintheme.liquid before </body> tag, adjusting .section-spacing.bordered-section marginsResolution:
For phone version only, on home page featured collection, how to reduce the space between heading and image?
Theme: Prestige
Website: https://prettycious.com/
@media screen and (max-width: 750px) {
.section-stack {
gap: 1px;
}
.section-spacing.bordered-section {
margin-top: 0;
}
}
Hello @memahmudhassan
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.
Hello @memahmudhassan ,
I understand you are looking to reduce the unnecessary space between the heading and the image.
I have reviewed your store and see that on the mobile screen the unnecessary space above and below the heading does not look appropriate.
You can remove the space with the help of the mentioned CSS code.
Add the code at the bottom of the theme.liquid file before tag and save.
Output -: https://prnt.sc/w9SlRiYI_JHU
I hope the code helps you.
Please share if you need any further assistance.
Thank you.
Can you please share a screenshot of the file where you added CSS?
@media screen and (max-width: 750px) {
.section-stack {
gap: 1px;
}
.section-spacing.bordered-section {
margin-top: 0;
}
}
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.
Thanks Anshul, it worked!