Bootstrap 3: How to keep thumbnails or images aligned within a row?

whoisjuan

I'm trying to make this grid work but I'm not sure what's the best approach here. I have this page with several thumbnails and each thumbnail has a title. The problem is that when the title length is very long it pushes the thumbnail and everything get messy like this:

enter image description here

I would like to find a way to keep thumbnails aligned, so if there is a very long title instead of pushing that thumbnail down, it pushes the whole row.

This is the markup I have so far for this block of thumbnails:

<div class="container">
   <div class="content row">
          <div class="col-lg-12">
                <h1>Fresh Goals and More</h1>
                <hr>
          </div>
                <div class="col-lg-3 col-md-4 col-xs-6 thumb">
                  <h2>Test Title<h2>
                    <a class="thumbnail" href="#">
                      <div class="vignette">
                        <img class="img-responsive" src="img/placeholder.jpg">
                      </div>
                    </a>
                </div>
                <div class="col-lg-3 col-md-4 col-xs-6 thumb">
                  <h2>Test Title That is Very Long So I Can Test How does Long Titles Behave in My web site display<h2>
                    <a class="thumbnail" href="#">
                      <div class="vignette">
                        <img class="img-responsive" src="img/placeholder.jpg">
                        </div>
                    </a>
                </div>
                <div class="col-lg-3 col-md-4 col-xs-6 thumb">
                  <h2>Test Title<h2>
                    <a class="thumbnail" href="#">
                      <div class="vignette">
                        <img class="img-responsive" src="img/placeholder.jpg">
                        </div>
                    </a>
                </div>
                <div class="col-lg-3 col-md-4 col-xs-6 thumb">
                  <h2>Test Title<h2>
                    <a class="thumbnail" href="#">
                      <div class="vignette">
                        <img class="img-responsive" src="img/placeholder.jpg">
                        </div>
                    </a>
                </div>
                <div class="col-lg-3 col-md-4 col-xs-6 thumb">
                  <h2>Test Title<h2>
                    <a class="thumbnail" href="#">
                      <div class="vignette">
                        <img class="img-responsive" src="img/placeholder.jpg">
                        </div>
                    </a>
                </div>
                <div class="col-lg-3 col-md-4 col-xs-6 thumb">
                  <h2>Test Title<h2>
                    <a class="thumbnail" href="#">
                      <div class="vignette">
                        <img class="img-responsive" src="img/placeholder.jpg">
                        </div>
                    </a>
                </div>
                <div class="col-lg-3 col-md-4 col-xs-6 thumb">
                  <h2>Test Title<h2>
                    <a class="thumbnail" href="#">
                      <div class="vignette">
                        <img class="img-responsive" src="img/placeholder.jpg">
                        </div>
                    </a>
                </div>
                <div class="col-lg-3 col-md-4 col-xs-6 thumb">
                  <h2>Test Title<h2>
                    <a class="thumbnail" href="#">
                      <div class="vignette">
                        <img class="img-responsive" src="img/placeholder.jpg">
                        </div>
                    </a>
                </div>
  </div><!-- content row close -->
 </div><!-- container close -->

Any hint on how can I fix this? Thanks in advance.

nolawi

this is simple you have to have a row for four thumbs

<div class="row">
<div class="col-md-3">thumb</div><div class="col-md-3">thumb</div><div class="col-md-3">thumb</div>
</div>
<div class="row">
<div class="col-md-3">thumb</div><div class="col-md-3">thumb</div><div class="col-md-3">thumb</div>
</div>

the row will keep the height of the longest column with children thumb http://www.bootply.com/6C7i5iRZhz

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Bootstrap 3: How to keep thumbnails or images aligned within a row?

From Dev

bootstrap columns not on aligned within row

From Dev

How to keep the divs aligned in bootstrap

From Dev

How to keep 3 divs aligned in a responsive way

From Dev

How to keep this centered and aligned?

From Dev

Bootstrap 3 - Bottom align column within row

From Dev

Bootstrap 3 - Bottom align column within row

From Dev

How to make bootstrap dropdown always left aligned to the row

From Dev

responsive images with bootstrap - two images aligned

From Dev

How to show only thumbnails images?

From Dev

Bootstrap 3 Text on the right of thumbnails

From Dev

Have Thumbnails with different images sizes Bootstrap

From Dev

Row of thumbnails works fine in Chrome but not in Firefox (bootstrap)

From Dev

How to keep the footer element aligned?

From Dev

Creating thumbnails for images on S3

From Dev

How to create bootstrap columns in a list of bootstrap thumbnails

From Dev

Keep buttons and form with select dropdown on same row in Bootstrap 3

From Dev

how to keep submenu with images centered in bootstrap nav-pill

From Dev

How to open images from MySQL within Bootstrap modal?

From Dev

How to generate thumbnails of images on iCloud Drive?

From Dev

Bootstrap 3.0 "row" first item not aligned correctly

From Dev

BootStrap : Two Divs in a row are not getting aligned properly

From Dev

BootStrap : Two Divs in a row are not getting aligned properly

From Dev

Horizontal align thumbnails to center in Bootstrap 3

From Dev

Styling thumbnails with bootstrap 3 and rails 4

From Dev

Bootstrap 3 way of laying out 8 images in a row

From Dev

How to center content within columns on Bootstrap 3

From Dev

How to cover background images in Bootstrap 3 grids?

From Dev

How to turn images into circle shape? Bootstrap 3

Related Related

  1. 1

    Bootstrap 3: How to keep thumbnails or images aligned within a row?

  2. 2

    bootstrap columns not on aligned within row

  3. 3

    How to keep the divs aligned in bootstrap

  4. 4

    How to keep 3 divs aligned in a responsive way

  5. 5

    How to keep this centered and aligned?

  6. 6

    Bootstrap 3 - Bottom align column within row

  7. 7

    Bootstrap 3 - Bottom align column within row

  8. 8

    How to make bootstrap dropdown always left aligned to the row

  9. 9

    responsive images with bootstrap - two images aligned

  10. 10

    How to show only thumbnails images?

  11. 11

    Bootstrap 3 Text on the right of thumbnails

  12. 12

    Have Thumbnails with different images sizes Bootstrap

  13. 13

    Row of thumbnails works fine in Chrome but not in Firefox (bootstrap)

  14. 14

    How to keep the footer element aligned?

  15. 15

    Creating thumbnails for images on S3

  16. 16

    How to create bootstrap columns in a list of bootstrap thumbnails

  17. 17

    Keep buttons and form with select dropdown on same row in Bootstrap 3

  18. 18

    how to keep submenu with images centered in bootstrap nav-pill

  19. 19

    How to open images from MySQL within Bootstrap modal?

  20. 20

    How to generate thumbnails of images on iCloud Drive?

  21. 21

    Bootstrap 3.0 "row" first item not aligned correctly

  22. 22

    BootStrap : Two Divs in a row are not getting aligned properly

  23. 23

    BootStrap : Two Divs in a row are not getting aligned properly

  24. 24

    Horizontal align thumbnails to center in Bootstrap 3

  25. 25

    Styling thumbnails with bootstrap 3 and rails 4

  26. 26

    Bootstrap 3 way of laying out 8 images in a row

  27. 27

    How to center content within columns on Bootstrap 3

  28. 28

    How to cover background images in Bootstrap 3 grids?

  29. 29

    How to turn images into circle shape? Bootstrap 3

HotTag

Archive