I’m trying to spread elements equally on the product page.
As you can see from the below 3 images, the product name, grey bar and price are not equally spread.
Hi @mike204 ,
Please share your store URL and if your store is password protected then please provide password too.
So that we can help you.
Thank you.
Thanks for quick reply.
Here’s link to website: https://q81nrzliwebgvc66-20717563.shopifypreview.com
Hi @mike204 ,
You can follow the instruction below:
.card-information {
margin-top: 20px !important;
}
If you feel like my answer is helpful, please mark it as a SOLUTION. Let me know if you have any further questions.
I’ve tried that, and it’s still the same
Hi @mike204 ,
I see that the css code has been received. The distance between the parts is also the same.
Sorry, If I misunderstood you. Can you explain the problem you’re having?
Thanks you
Hi @mike204 ,
You can follow the instruction below:
.card__heading {
height: 70px;
overflow: hidden;
}
If you feel like my answer is helpful, please mark it as a SOLUTION. Let me know if you have any further questions.
Thanks for that! Is there a solution using flex or grid?
To use flex and avoid fixed height you may try this:
.card__heading {
height: unset; /* override the fixed height rule */
margin-bottom: auto;
}
.card {
height: 100%;
display: flex;
flex-direction: column;
}
.card__content {
height: 100%;
display: unset; /* undo the grid, should be fine with default block */
margin-bottom:3rem;
}
.card__content > .card__information {
height: 100%;
display: flex;
flex-direction: column;
}
Thanks Tim! Works perfect!