bootstrap image gallery different sizes

max-width: 100%; and height: auto; are applied to the image so that it scales with the parent element. It also has a touch-swipe feature enabled. height = $(this).height() 30 ? Bootstrap has a class for this called clearfix. They are all hidden now. The contents of the modal box is grabbed from the 2 variables we created (src, img) which is the image tag and original src of the image clicked. , Hi Michael Can you offer some guidance on how to accomplish? Thanks for this great tutorial, but where in my code/project should I paste the $(document).ready(function(){ To achieve such grouping as shown in my question's UPDATE, (one heigth for all, different widths and different amount of columns/images in each row) I used only CSS means: Now there is one height for all images and different widths. In addition to our border-radius utilities, you can use .img-thumbnail to give an image a rounded 1px border appearance. Hi, This seems to take into account where an element is positioned, so if you move it as child to a different parent, the functionality is lost. xyz, ,