I am having issues with Lightbox2 as it is not functioning properly when I try to click on the image.
Upon inspecting the Developer Console in Chrome, I noticed that the overlay and image are being added to the DOM, but the display
property is set to none
.
display:none
This is the code I used for testing purposes:
<!DOCTYPE HTML>
<html lang="en">
<head>
<meta charset="utf-8">
<script src="Script/jquery.js"></script>
<link href="Script/lightbox_dist/css/lightbox.css" rel="stylesheet">
</head>
<body>
<img src="Images/Gallery/27.jpg" data-lightbox="gallery" width="250"/>
<script src="Script/lightbox_dist/js/lightbox.js"></script>
</body>
</html>