As the product title string length varies, the Price and Add to Cart buttons display at differing heights.
Is there a way to make sure they are in line?
Many thanks
This topic has 4 replies, 2 voices, and was last updated 4 years, 8 months ago ago by Olga Barlow
As the product title string length varies, the Price and Add to Cart buttons display at differing heights.
Is there a way to make sure they are in line?
Many thanks
Hello,
There are 2 workarounds:
1) Limit the title length
2) Set the title min-height and then you will have some empty space for products that have one line of the product title instead of 2 or 3.
Which way is more suitable for you?
Provide us with link to your shop, please.
Regards
Thank you, I used the code below and it worked – is that correct?
.content-product .product-title {
min-height: 40px;
line-height: 1.3rem;
}
Thanks,
Hello,
It would be better to use
.content-product .product-title {
min-height: 5ex;
line-height: 2.5ex !important;
}
Regards
The issue related to '‘Product title in line’' has been successfully resolved, and the topic is now closed for further responses