# Thumbnail height problem

**URL:** <https://forum.freecodecamp.org/t/thumbnail-height-problem/171061>\
**Category:** General\
**Created:** [January 26, 2018, 4:36pm UTC](https://forum.freecodecamp.org/t/thumbnail-height-problem/171061 "2018-01-26T16:36:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![naglis](https://avatars.discourse-cdn.com/v4/letter/n/ebca7d/32.png) [@naglis](https://forum.freecodecamp.org/u/naglis)\
**Post date:** [January 26, 2018, 4:36pm UTC](https://forum.freecodecamp.org/t/thumbnail-height-problem/171061/1 "2018-01-26T16:36:53Z")

</div>

Hello everyone,

got a problem while building my portfolio page and can’t figure out the solution.

Thumbnail images are of different height and so thumbnails become different height as well. how can i make them same height while keeping images original height and thumbnails responsive to screen width. also make captions aligned at the same height.

i want it to be something like this

 ![Untitled-2](https://global.discourse-cdn.com/freecodecamp/original/3X/7/8/78fad5405fbcf056cc12bc82c61b19087f23d5c9.jpg)

as you can see i wat to make all 4 thumbnails the same height. but currently the first on is shorter than the rest.

my code:  
div class=“container”  
div class=“jumbotron”  
div class=“row”  
center h4 id=“portfolio” PORTFOLIO /h4 /center  
br/  
div class=“col-md-3 col-xs-6”  
a href=“[https://codepen.io/Naglis/pen/xpBzzW](https://codepen.io/Naglis/pen/xpBzzW)” target=’\_blank’  
div class=“thumbnail”  
img src="…" alt=“no picture” style=“image responsive”  
div class=“caption” h6 Tribute page /h6 /div  
/div  
/a  
/div  
div class=“col-md-3 col-xs-6”  
a href="" target=’\_blank’  
div class=“thumbnail”  
img src="…" alt=“no picture” style=“image responsive”  
div class=“caption” h6 Lorem ipsum dolor sit /h6 /div  
/div  
/a  
/div  
div class=“col-md-3 col-xs-6”  
a href="" target=’\_blank’  
div class=“thumbnail”  
img src="…" alt=“no picture” style=“image responsive”  
div class=“caption” h6 Lorem ipsum dolor sit /h6 /div  
/div  
/a  
/div  
div class=“col-md-3 col-xs-6”  
a href="" target=’\_blank’  
div class=“thumbnail”  
img src="…" alt=“no picture” style=“image responsive”  
div class=“caption” h6 Lorem ipsum dolor sit /h6 /div  
/div  
/a  
/div  
/div  
/div  
/div

.background {  
background-color: #b1d6eb;  
}

#navigation {  
background-color: #464553;  
padding: 20px;  
margin-top: 50px;  
}

div {  
font-family: “lato”, “Verdana”, “Arial”, “sans-serif”;  
}

h1 {  
font-weight: 300;  
}

hr {  
width: 70%;  
height: 1px;  
background-color: black;  
}

a {  
color: black;  
}

p {  
font-weight: 400;  
}

---

<div class="post-metadata">

**Author:** ![naglis](https://avatars.discourse-cdn.com/v4/letter/n/ebca7d/32.png) [@naglis](https://forum.freecodecamp.org/u/naglis)\
**Post date:** [January 26, 2018, 5:17pm UTC](https://forum.freecodecamp.org/t/thumbnail-height-problem/171061/3 "2018-01-26T17:17:08Z")

</div>

```auto
<div class="container">
  <div class="jumbotron">
    <div class="row">
      <center><h4 id="portfolio"> PORTFOLIO </h4> </center>
      <br/>
      <div class="col-md-3 col-xs-6">
        <a href="https://codepen.io/Naglis/pen/xpBzzW" target='_blank'>
          <div class="thumbnail">
          <img src="http://www.ve.lt/forum/uploads/img/catalog/1/466/254/valdas-adamkus-draugystes-su-rusija-nereiketu-siekti-bet-kokia-kaina2.jpg" alt="no picture" style="image responsive"> 
          <div class="caption"> <h6> Tribute page </h6> </div>
          </div>
        </a>
      </div>
      <div class="col-md-3 col-xs-6">
        <a href="" target='_blank'> 
          <div class="thumbnail">
          <img src="https://content.20lines.com/4/ico/nR2AkiKs_vN77_562ffce5782073_65523705.jpg" alt="no picture" style="image responsive"> 
          <div class="caption"> <h6> Lorem ipsum dolor sit </h6> </div>
          </div> 
        </a>
      </div>
      <div class="col-md-3 col-xs-6">
        <a href="" target='_blank'> 
          <div class="thumbnail">
          <img src="https://content.20lines.com/4/ico/nR2AkiKs_vN77_562ffce5782073_65523705.jpg" alt="no picture" style="image responsive"> 
          <div class="caption"> <h6> Lorem ipsum dolor sit </h6> </div>
          </div>
        </a>
      </div>
      <div class="col-md-3 col-xs-6">
        <a href="" target='_blank'>
          <div class="thumbnail">
          <img src="https://content.20lines.com/4/ico/nR2AkiKs_vN77_562ffce5782073_65523705.jpg" alt="no picture" style="image responsive"> 
          <div class="caption"> <h6> Lorem ipsum dolor sit </h6> </div>
          </div> 
        </a>
      </div>     
    </div> 
  </div>
</div>

```

---

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [January 17, 2021, 8:28pm UTC](https://forum.freecodecamp.org/t/thumbnail-height-problem/171061/4 "2021-01-17T20:28:38Z")

</div>

Closed on January 17, 2021, 8:28pm UTC


