Gallery with captions and credits
Photos with a proper caption, the photographer's name and the reuse licence.
- Tailwind
- React
- CSS
- WordPress
Description
For a photo library, tourist office, museum or local paper, this gallery pairs each photo with its caption in a figure / figcaption: a title, a sentence of context, then the “Photo: …” credit and the licence (all rights reserved, CC BY, free for press use) in a pill. Crediting the author is a copyright obligation, and the licence answers reuse questions. The first photo is featured at full width, the others fall into a one to three column grid. Pure HTML and CSS, no script. The demo images are CSS drawings to replace with your photos, keeping the alt text. AA contrast in light and dark mode, no horizontal scrolling from 360 px. Example: the Vercors tourist office photo library.
Code
Loading the code…
The code of this component in
Archive contents
galerie-legendes-credits-html-tailwind.zip3 files · 5 Ko
- index.html7 Ko
- README.md3 Ko
- LICENSE.md1 Ko
Tags
Updated on December 2, 2026.
Reviews
No reviews yet.
In the same spirit

A product photo that zooms in under the pointer, and from the keyboard with Enter and the arrow keys, to inspect the details.
- Tailwind
- React
- CSS
- WordPress

An Instagram-style square grid with a profile header and captions on hover, served by your own site: no social network script or cookie.
- Tailwind
- React
- CSS
- WordPress

Building site photos sorted by dated step on a vertical timeline, with the current step highlighted.
- Tailwind
- React
- CSS
- WordPress

A large photo with clickable thumbnails and arrows, for a product page or a property listing.
- Tailwind
- React
- CSS
- WordPress