So you would have seen in many sites that images would be displayed in a separate container and the background would get dull while the image gets displayed, just like lights off ! This is called a jQuery lightbox. And many think that it is a bit difficult to create and implement a jQuery Lightbox. That is kind of true if you are going to create your own Lightbox. The trouble comes in when you need to center the image in the dead center of the page.

Related Post : Horizontal and Vertical Centering in CSS
So to help you out of those troubles many developers started to create lightbox plugins. And I too did so keeping in mind that simplicity should be delivered.
I created a jQuery Lightbox plugin called as PictureBox and the advantage of this plugin from others lies in its simplicity to implement and you will find out that in the later part of this post.
PictureBox ! - A Simple Yet Awesome jQuery Lightbox plugin
Features :
- Completely Responsive
- Very Easy To Implement
- Very small footprint of 4.7 KB
- Responds to your KeyStrokes
- Includes Image Slider
How To Implement :
As I have been saying the implementation is so simple that even newbies could handle it. Here is the sample implementation code :
<link rel = "stylesheet" href = "includes/picturebox.css">
<script src = "includes/jquery.js"></script>
<script src = "includes/picturebox.js"></script>
<div class = "lightbox">
//Your Images
</div>To put it much simpler just wrap the images that you want to appear in the image slider with a div of class lightbox. Simple as that ! So it is worth trying and you would love it.

















