-1
<div class="col-md-3 col-sm-6 col-xs-12 center wow fadeInUp" data-wow-delay="0.2s" style="visibility: hidden; animation-delay: 0.2s; animation-name: none;">
                                <div class="thumb-links" style="width:100%;">
                                    <img src="@item.projectImageURL" alt="@item.projectCompany">
                                </div>                             
                            </div>

and CSS

.thumb-links {
display: block;
position: relative;
z-index: 2;
text-align: center;
cursor: pointer;
height: 270px;}

@media (max-width: 767px) {
.thumb-links {
    max-width: 370px;
    margin-left: auto;
    margin-right: auto;
}}
.thumb-links img {
height: auto;
vertical-align:middle;
-moz-transition: 0.5s all ease;
-webkit-transition: 0.5s all ease;
-o-transition: 0.5s all ease;
transition: 0.5s all ease;}

enter image description here

images widths and heights are different than each others I cant get them properly. they are going to top of thumb-links.

Mert Kaya
  • 15
  • 4

2 Answers2

0
.thumb-links{
     clear: both;
 }

Add this css property to your thumb links.

Gibbs
  • 21,904
  • 13
  • 74
  • 138
0

https://stackoverflow.com/a/37772582/5194515 I solved it from this link

.thumb-links {
position: relative;
z-index: 2;
text-align: center;
cursor: pointer;
height: 270px;
float:left;
width:270;
display:flex;
align-items:center;
justify-content:center;}
Community
  • 1
  • 1
Mert Kaya
  • 15
  • 4