Hi,
I'm having trouble adding padding above the add to cart button on Brooklyn theme for mobiles. Now these buttons are placed right after product titles on the home page. I want to add some space above so that all add to cart button are on the same line.
I did some research and find the below code:
@media only screen and (max-width: 749px)
{
li.grid__item.grid__item--featured-collections.small--one-half.medium-up--one-quarter {
margin-bottom: 10px;
}
}
@media only screen and (max-width: 749px)
{
//new code for collection page:
li.grid__item.grid__item--collection-template.small--one-half.medium-up--one-quarter {
margin-bottom: 10px;
}
}
I tried to add these to theme.scss but they are not working.
Please let me know how to solve this problem.
Thank you!
Best,
Lily
Solved! Go to the solution
Please share your website URL and password if any. I will check and provide a solution here.
Thanks!
This is an accepted solution.
Please add the following code at the bottom of your assets/theme.css file.
@media only screen and (max-width: 600px) {
.grid-uniform .grid__item .grid-product__wrapper .grid-product__title {
min-height: 60px ;
display: flex;
flex-wrap: wrap;
}
}
This is an accepted solution.
i hope this work. please change this your code ..
@media only screen and (max-width: 600px) {
.grid-uniform .grid__item .grid-product__wrapper .grid-product__title {
min-height: 60px ;
display: flex;
flex-wrap: wrap;
}
}
thank you so much
User | Count |
---|---|
449 | |
210 | |
105 | |
91 | |
86 |