Hello friends, how can I minimize the padding in this section only for mobile version?
Topic summary
A user seeks to reduce padding in a specific section, but only on mobile devices.
Solution Provided:
- Navigate to Shopify Admin → Online Store → Theme → Customize → Theme Settings → Custom CSS
- Insert provided CSS code that uses a media query (
@media screen and (max-width: 768px)) to target mobile screens - The code removes bottom padding and margins from multiple elements including slider buttons, collection list wrapper, and card components
- Uses
!importantdeclarations to override existing styles
Status: The solution appears complete with CSS code and a visual result showing reduced spacing on mobile view.
Hi @NikosBat
To complete your requests, please follow these steps:
- Go to Shopify Admin > Online Store > Theme > Customize > Theme Settings > Custom CSS https://prnt.sc/i8ljAMlHJUKl
- Paste the code provided into the Custom CSS section.
@media screen and (max-width: 768px){
.slider-buttons > button {
height: 30px !important;
}
.collection-list-wrapper.page-width {
padding-bottom: 0 !important;
}
ul.collection-list.contains-card {
margin-bottom: 0 !important;
}
ul.collection-list.contains-card > li {
padding-bottom: 0 !important;
}
ul.collection-list.contains-card > li > .card-wrapper.collection-card-wrapper .card.card--standard.card--media > .card__content .card__information {
padding-bottom: 0 !important;
}
}
Here is the result:
I hope this helps
Best,
Daisy

