Building a CSS-only image gallery (with fallbacks)
A great step-by-step walkthrough of building a really nice image gallery without any JavaScript.
The end result is really impressive but there’s still the drawback that the browser history will be updated every time you click on an image thumbnail (because the functionality relies on ID
attributes referenced via :target
). Depending on your use-case, that may or may not be desirable.