How To Create a Lightbox - W3Schools Well organized and easy to understand Web building tutorials with lots of examples of Learn how to create a modal image gallery (lightbox) with CSS and JavaScript.. Example.