Related Products - Add to cart button problem

Hi,

I’ve a problem about add to cart buttons on related products section.

At first they were like this and I had an alignment problem.

Then I asked on this question, and I was told to add these codes in Asset->/theme-styles.css to align them and it was solved with these codes except just one product;

.product-title, .product-name {
    overflow: hidden;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
}

But now, as it can be seen on the image, all add to cart buttons are overlapped and they don’t have any space between each other like this and only one product is not aligned. It can also be seen on my store.

How can align all of them and how can I leave a little space between them? Maybe I should decrease the number of related products shown to do this, to 5 or 4 maybe, but I don’t know how can I decrease it. Can anyone please help me about it? Thanks.

Hi @sezyez ,

It’s customization work, for that you need to hire a developer or need a developer help,
to add this feature with custom code.

You can contact (https://www.halothemes.com/contact) for support.

If you find this answer helpful, please mark it as a SOLUTION.

Best regards.