Skip to main content

BETANow in public beta.Public betaBeta

日本語Español

GAL-005 Published

Caption overlay gallery

A design that lays a dark band across the bottom of each photo and overlays the title on it, with the first photo shown large.

Wireframe (desktop) | Caption overlay gallery

Caption overlay gallery UI design (desktop wireframe)

Wireframe (mobile) | Caption overlay gallery

Caption overlay gallery UI design (mobile wireframe)

What changes on mobile

  1. First photo at full width: Keeps the flagship project standing out on mobile.
  2. Smaller title text: Stops the title covering most of a photo in the two-column layout.

Before you choose this pattern | Caption overlay gallery

Good fit

  • Photos should be large, and still say what they show
  • A home page where flagship projects should stand out
  • The set can be limited to about four or five photos

Poor fit

  • Important content in the bottom of the photos (the title would hide it; the <a href="/patterns/en/gallery-grid/">grid gallery</a> works better)
  • Long titles or descriptions

Why this wireframe works | Caption overlay gallery

Large photos that still carry a title

The title is overlaid on the bottom of each photo, so it says what the photo shows without reducing the photo area.

A dark band keeps the text readable

A band darkening toward the bottom sits across the bottom of each photo, so white text stays readable even on bright photos.

The first photo is large to feature a flagship project

The first photo spans two rows, making the flagship project stand out. The other photos share one size.

Titles visible without hovering

Titles shown only on hover cannot be seen on mobile or by keyboard. The titles are always visible.

Common mistakes | Caption overlay gallery

Titles shown only on hover

A title that appears only on hover cannot be seen on mobile. Show titles at all times.

No band, so white text vanishes on white photos

Depending on the photo’s brightness, text can melt into the background. Lay a dark band, or give the text a background, and keep enough difference in brightness.

Text over the important part of the photo

If the important content is in the bottom of the photo, the title hides it. When choosing photos, pick compositions with space at the bottom.

Titles baked into the photo

Titles baked into the image do not reach screen readers or search, and every correction means remaking the image. Overlay titles as text.

FAQ | Caption overlay gallery

How dark should the band be?

Check the contrast ratio between text and background so it holds whatever the photo’s brightness. WCAG gives 4.5:1 or more for normal text as the guide. Because photos vary, check over the brightest one.

Why make the first photo large?

When all photos are the same size, nobody can tell which is the flagship project. Enlarging the first photo conveys which project to look at first.

Where should pressing a photo lead?

To the project’s own page, as a rule. To show the photo large only, enlarging it as in the lightbox is an option.

Related pages

Share this pattern

Send this page to your team or your design partner.

Was this pattern useful?

Written by

Yuta Okano

ENVY DESIGN Inc.

CEO / Director / Designer

14 years in the web industry. Has worked on more than 500 web projects, from corporate and recruiting sites to e-commerce. Focuses on information architecture, direction and design, from planning websites to improving them. In recent years he has focused on AIO (AI optimization) and GEO, helping sites get cited by generative AI search such as ChatGPT, Perplexity and Google AI Overviews.

Review and revision history

  1. Published AvatarYuta Okano Pattern published