Hi,
I’ve a problem about aligning add to cart buttons on related products section.
It can be seen on here as an example. or on the image below.
What should I do to get all the add product buttons in one line?
Hi,
I’ve a problem about aligning add to cart buttons on related products section.
It can be seen on here as an example. or on the image below.
What should I do to get all the add product buttons in one line?
Hi @sezyez ,
You can follow the instruction below:
.product-title, .product-name {
overflow: hidden;
white-space: normal;
display: -webkit-box;
-webkit-line-clamp: 2;
text-overflow: ellipsis;
-webkit-box-orient: vertical;
}
If you feel like my answer is helpful, please mark it as a SOLUTION. Let me know if you have any further questions.
Hello @sezyez ,
Please follow the below steps…
button.btn.add-to-cart-btn.btn-two
{
min-width: 100% !important;
text-align: center !important;
font-size: 13px !important;
}
I hope it will work for you!!
.product-title{
overflow: hidden;
white-space: normal;
display: -webkit-box;
-webkit-line-clamp: 2;
text-overflow: ellipsis;
-webkit-box-orient: vertical;
}
.product-name {
overflow: hidden;
white-space: normal;
display: -webkit-box;
-webkit-line-clamp: 2;
text-overflow: ellipsis;
-webkit-box-orient: vertical;
}
Add this code in the bottom of the theme-styles.css