0

I need some help to set the same height to all items. I want all items to have the same length, just like the first image enter image description here.

The second image is what I display in my project.enter image description here

My cod is:

<div class="item">
<div class="col-md-3 col-sm-6 col-xs-12 product">
    <span class="product-thumb-info" style="margin-top: 20px">
        <a href="item.php?page=item&id_prod=<?php echo $stock_rs['id_prod']; ?> ">
            <span class="product-thumb-info-image">
                <span class="product-thumb-info-act">
                    <span class="product-thumb-info-act-right"><em><i class="fa fa-plus"></i> Detali</em></span>
                </span>
                <img alt="" class="img-responsive" src="img/products/<?php echo $stock_rs['nume_imagini']; ?>">
            </span>
        </a>
        <span class="product-thumb-info-content" style="text-align: center">
            <a href="item.php?page=item&id_prod=<?php echo $stock_rs['id_prod']; ?> ">
                <h6><strong><?php echo $stock_rs['denumire_produs']; ?><br/></strong></h6>
                <span class="price">
                    <strong><span class="amount"><?php echo $stock_rs['pret_produs'] . ' Lei'; ?></span></strong>
                </span>
            </a>
        </span>
    </span>
</div>

2 Answers2

1

Try to set display: flex to parent container.

0

There are n number of solutions for your problem.

  1. Set height for the details div
  2. Restict the title to one line with ellipsis and tooltip and so on...
Prabhakaran
  • 1,524
  • 2
  • 13
  • 21