I have used light box 2 to create a gallery for my bootstrap 3 webpage. The thumbnails are not properly arranged. It is supposed to seen as a horizontal line but it shows in a vertical line. Besides this, lightbox works properly. Below is my code.
<body>
<div class="container">
<h3>Gallery</h3>
<div class="gallery">
<div class="row">
<div class "col-lg-3">
<a href="img/1.jpg" data-title="caption" data-lightbox="school">
<img src="img/1.jpg" width="200px" class="img-thumbnail"/>
</a>
</div>
<div class "col-lg-3">
<a href="img/2.jpg" data-title="caption" data-lightbox="school">
<img src="img/2.jpg" width="200px" class="img-thumbnail"/>
</a>
</div>
<div class "col-lg-9">
<a href="img/3.jpg" data-title="caption" data-lightbox="school">
<img src="img/3.jpg" width="200px" class="img-thumbnail"/>
</a>
</div>
</div>
<div class="row">
<div class "col-lg-3">
<a href="img/1.jpg" data-title="caption" data-lightbox="school">
<img src="img/1.jpg" width="200px" class="img-thumbnail"/>
</a>
</div>
<div class "col-lg-3">
<a href="img/2.jpg" data-title="caption" data-lightbox="school">
<img src="img/2.jpg" width="200px" class="img-thumbnail"/>
</a>
</div>
<div class "col-lg-3">
<a href="img/3.jpg" data-title="caption" data-lightbox="school">
<img src="img/3.jpg" width="200px" class="img-thumbnail"/>
</a>
</div>
</div>
</div>
</div>
</div>
<script src="js/bootstrap.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script src="js/lightbox.min.js"></script>
</body>
I am also attaching a screenshot of it:
It seems your link to bootstrap, or the copy of bootstrap you are using is not valid. Perhaps the gallery is disabling or overriding its styles somehow. In either case it will work if you replace
with
EXAMPLE: