Chapter 8. Showing Content in Lightboxes

It has become common to see galleries of photos displayed in lightboxes on the web. Lightboxes can be useful for other things too—playing videos, showing additional information, displaying important information to site visitors, or even showing other websites. In this chapter, we'll cover how to use the flexible and adaptable Colorbox plugin to create lightboxes for a variety of purposes.

In this chapter, we'll take a look at how to use the Colorbox plugin to:

  • Create a simple photo gallery
  • Customize photo gallery settings
  • Build a fancy login box
  • Play a collection of videos
  • Create a one-page website portfolio

Simple photo gallery

A simple photo gallery is probably the most common use for lightboxes. We'll set up ...

Get jQuery for Designers Beginner's Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.