Have Thumbnails with different images sizes Bootstrap

Have Thumbnails with different images sizes Bootstrap

I will like to have thumbnail with images of different sizes and different amount of text. But I want them to all have the same size. Like this example from the Bootstrap site.
Below is the code I have at the moment, with a demo on jsFiddle.
I have different images size, so this gets broken. Is this possible with Bootstrap?

Fading a RGB LED on BeagleBone Black

Sample Image

In this tutorial, you will learn how to control the color of an RGB LED using a BeagleBone Black and Python.

Measuring Light with a BeagleBone Black

Sample Image

In this tutorial, you will learn how to connect a photoresistor to a BeagleBone Black. The tutorial can also be used for other resistive sensors such as FSRs or SoftPots.

Solutions/Answers:

Solution 1:

You can achieve that by defining dimensions for your containers.

for example in your container element(.thumbnail), set a specific dimensions to follow like:

.thumbnail{        
    width: 300px; 
    // or you could use percentage values for responsive layout
    // width : 100%;
    height: 500px;
    overflow: auto;
}

.thumbnail img{
    // your styles for the image
    width: 100%;
    height: auto;
    display: block;
}

and so on with the other elements.

Related:  Bootstrap 3 Navbar with Logo

SAMPLE

Solution 2:

You can accomplish this with CSS on the img tag.

img {
    width: 200px;
    height: 200px;
}

or inline on each img tag like this

<img style="width: 200px; height: 200px" src="https://learn.adafruit.com/system/guides/images/000/000/339/medium310/overview_web.jpg" alt="Sample Image">

Solution 3:

You should setup height of those columns. In example we have same amount of text, so it has same height for each div.

Solution 4:

Here is my solution, hope it help!

  <style type="text/css">
  .row{
    display: flex;
   flex-wrap: wrap;
  }
  .row>[class="col-sm-6 col-md-4"]{
    display: flex;
    flex-direction: column;
  }
</style>

References