45+ HTML <details> & <summary> with CSS - Free Code + Demos

Collection of 45+ HTML <details> & <summary> with CSS. All items are 100% free and open-source.

1. TreeView Details/Summary

HTML <details> & <summary> with CSS - TreeView Details/Summary
Author: johnbarnitz (johnbarnitz)
Created on: June 5, 2020
Made with: HTML, CSS

2. Simple PureCss Dropdown Menu With Following Subnav

HTML <details> & <summary> with CSS - Simple PureCss dropdown menu with following subnav
Menu with dropdown made only in css, with a line that follow the hover on the line
Author: Robert Borghesi (dghez)
Created on: February 17, 2015
Made with: HTML, SCSS
Tags: menu, dropdown, css, animation, translate

3. HTML Only Accordion

HTML <details> & <summary> with CSS - HTML Only Accordion
Exploring styling the HTML Details and Summary tags to create functional accordion without any javascript.
Author: Frederick Allen (frederickallen)
Created on: July 2, 2019
Made with: HTML, CSS
Tags: accordion, html5, no-javascript, html-only, expand collapse

4. Details Element With Custom Arrow

HTML <details> & <summary> with CSS - Details element with custom arrow
A details element with a custom arrow, no javascript
Author: Niels Voogt (NielsVoogt)
Created on: May 24, 2019
Made with: HTML, SCSS

5. Animated Details Element — Week 11/52

HTML <details> & <summary> with CSS - animated details element — week 11/52
Author: Mert Cukuren (knyttneve)
Created on: March 17, 2019
Made with: HTML, SCSS
Tags: details, accordion, pure-css, slide-down

6. Unit Testing Results Panel

HTML <details> & <summary> with CSS - Unit Testing Results Panel
Messing around with a previous pen using details/summary to add additional features
Author: Tony Banik (banik)
Created on: February 13, 2019
Made with: Pug, SCSS, JS
CSS Pre-processor: SCSS
JS Pre-processor: None
HTML Pre-processor: Pug
Tags: details, summary, unit testing, testing, failure

7. Teaching The Details Element With ... Details Elements!

HTML <details> & <summary> with CSS - Teaching the Details Element with ... Details Elements!
Author: James Steinbach (jdsteinbach)
Created on: October 10, 2018
Made with: HTML, SCSS, JS
Tags: codepenchallenge cpc-teach-html

8. HTML5 Details & Summary

HTML <details> & <summary> with CSS - HTML5 Details & Summary
Author: Jenning (jenning)
Created on: August 16, 2018
Made with: Pug, Sass
CSS Pre-processor: Sass
JS Pre-processor: None
HTML Pre-processor: Pug
Tags: cpc-teach-html, html5, details, summary, codepenchallenge

9. Details/Summary Animated Accordion

HTML <details> & <summary> with CSS - Details/Summary Animated Accordion
What it says on the tin. You can use this without JS and it works fine, except for the closing animation.
Author: Kam Black (kamblack)
Created on: July 16, 2018
Made with: HTML, SCSS, JS
Tags: details, summary, accordion, css

10. HTML Buddies <details> & <summary>: Bad Kids’ Jokes

HTML <details> & <summary> with CSS - HTML Buddies <details> & <summary>: bad kids’ jokes
Author: Jessica Paoli (skullface)
Created on: June 1, 2018
Made with: HTML, SCSS, JS
Tags: codepenchallenge, cpc-details, cpc-skullface

11. HTML5 <details> & <summary> File Tree

HTML <details> & <summary> with CSS - HTML5 <details> & <summary> File Tree
Author: Isaione (Isaione)
Created on: May 21, 2018
Made with: Pug, SCSS
CSS Pre-processor: SCSS
JS Pre-processor: None
HTML Pre-processor: Pug

12. Details & Summary

HTML <details> & <summary> with CSS - Details & Summary
Author: Jenning (jenning)
Created on: August 16, 2018
Made with: Pug, Sass
CSS Pre-processor: Sass
JS Pre-processor: None
HTML Pre-processor: Pug
Tags: cpc-teach-html, html5, details, summary, codepenchallenge

13. <details> & <summary>: Hotel Room Selection

HTML <details> & <summary> with CSS - <details> & <summary>: Hotel Room Selection
Click one, and the others close.
Author: Leena Lavanya (leenalavanya)
Created on: May 20, 2018
Made with: HTML, CSS, JS
Tags: cpc-details, codepenchallenge

14. Details Summary

HTML <details> & <summary> with CSS - Details Summary
Not supported IE & EDGE browsers.
Author: AMAN (adsingh14)
Created on: May 19, 2018
Made with: HTML, SCSS
Tags: codepenchallenge, css, details, cpc-details

15. Spoiler Alert With Details And Summary

HTML <details> & <summary> with CSS - Spoiler Alert With Details And Summary
Using details and summary to hide/reveal spoilers.
Author: Stephen Lee (abcretrograde)
Created on: May 17, 2018
Made with: HTML, CSS
Tags: codepenchallenge, cpc-details

16. Recipe With Details And Summary

HTML <details> & <summary> with CSS - Recipe With Details And Summary
Using < details > and < summary > to create a recipe for Enchiladas
Author: Porgeee (GeorgePorgee)
Created on: May 17, 2018
Made with: HTML, CSS
Tags: cpc-details, css, summary, details, codenewbie

17. Details & Summary

HTML <details> & <summary> with CSS - Details & Summary
Author: Mesut Koca (koca)
Created on: May 16, 2018
Made with: HTML, SCSS
Tags: cpc-details, details, summary, tailwindcss

18. Details & Summary

HTML <details> & <summary> with CSS - details & summary
Codepen Challenge: https://codepen.io/challenges/2018/may/
Author: yuanchuan (yuanchuan)
Created on: May 16, 2018
Made with: HTML, CSS, JS
Tags: cpc-details

19. Details And Summary

HTML <details> & <summary> with CSS - Details And Summary
Using details and summary to hide/reveal spoilers.
Author: Stephen Lee (abcretrograde)
Created on: May 17, 2018
Made with: HTML, CSS
Tags: codepenchallenge, cpc-details

20. Responsive 1 Web Page Split Screen

HTML <details> & <summary> with CSS - Responsive 1 Web Page Split Screen
Responsive 1 Web Page with a "Split Screen" style by using only CSS. Try it in small screen.
Author: Amli (uzcho_)
Created on: May 15, 2018
Made with: HTML, CSS
Tags: codepenchallenge, cpc-details, book, split screen, rwd

21. HTML Details And Summary

HTML <details> & <summary> with CSS - HTML Details And Summary
Author: Allistair Lee (allistairlee)
Created on: May 15, 2018
Made with: HTML, CSS, JS
Tags: codepenchallenge, cpc-details

22. Details And Summary

HTML <details> & <summary> with CSS - Details And Summary
Author: Vincent Danna (vinnywoo)
Made with: Haml, Sass
CSS Pre-processor: Sass
JS Pre-processor: None
HTML Pre-processor: Haml

23. Details And Summary 3

HTML <details> & <summary> with CSS - Details And Summary 3
Quick and dirty sketch of details accordion. Hope you enjoy. I'm sure its working properly on Safari/Chrome.
Author: Artem (artyschein)
Created on: May 14, 2018
Made with: Haml, Sass, Babel
CSS Pre-processor: Sass
JS Pre-processor: Babel
HTML Pre-processor: Haml
Tags: details, summary, css, codepenchallenge

24. Bucket List Destinations <details> CSS

HTML <details> & <summary> with CSS - Bucket List Destinations <details> CSS
Author: Yanely Ramirez (yxnely)
Created on: May 14, 2018
Made with: HTML, SCSS
Tags: cpc-details, html, css, gradient

25. Digital Monopoly Properties

HTML <details> & <summary> with CSS - Digital Monopoly properties
Posting this for the weekly Codepen challenge - my idea for using the Details and Summary tags
Author: Kyle (kaisle)
Created on: May 14, 2018
Made with: HTML, CSS
Tags: codepenchallenge, details, summary, cpc-details, monopoly

26. A Detailed Summary Of Life <summary> CSS

HTML <details> & <summary> with CSS - A Detailed Summary Of Life <summary> CSS
Author: Tony Banik (tonybanik)
Created on: May 14, 2018
Made with: HTML, SCSS
Tags: codepenchallenge, cpc-details, details, summary, responsive

27. Gracefully Degrading Details Accordion

HTML <details> & <summary> with CSS - Gracefully Degrading Details Accordion
For the CodePen Challenge (May 2018). The details element provides a very easy and accessible implementation of the accordion, one of the most common UI components. The problem is that the default functionality is anything but smooth. Here I've tried to solve this issue with a nice ES6 cla...
Read More
Author: Keith Pickering (keithpickering)
Created on: May 14, 2018
Made with: HTML, SCSS, JS
Tags: cpc-details, codepenchallenge, accordion, vanillajs, es6

28. Toggle Function & Smooth Scroll Pure HTML & CSS

HTML <details> & <summary> with CSS - Toggle Function & Smooth Scroll Pure HTML & CSS
all in pure CSS
Author: Kseso (Kseso)
Created on: February 14, 2018
Made with: HTML, CSS
Tags: challenge, details, summary, cpc-details

29. Animated Collapse-Expend Component

HTML <details> & <summary> with CSS - Animated Collapse-Expend Component
Author: Elior Tabeka (eliortabeka)
Created on: November 3, 2017
Made with: HTML, SCSS
Tags: cpc-details, animated collapse/expand, codepenchallenge

30. Details And Summary Elements Demo

HTML <details> & <summary> with CSS - Details and Summary Elements Demo
Simple demo showing how to use the details and summary elements.
Author: Matt West (matt-west)
Created on: March 5, 2014
Made with: HTML, CSS
Tags: html5, css3

31. HTML5 Details & Summary Accordion

HTML <details> & <summary> with CSS - HTML5 Details & Summary Accordion
Author: Lauren Clark (laurenclark)
Made with: HTML, SCSS

32. HTML5 Details & Summary Accordion - Hide/Show With No CSS Or JS!

HTML <details> & <summary> with CSS - HTML5 Details & Summary Accordion - Hide/Show with no CSS or JS!
Author: Lauren Clark (laurenclark)
Created on: September 18, 2019
Made with: HTML, SCSS
Tags: accordion, html5, no-css, no-js

33. Pure CSS Modal With Details And Summary

HTML <details> & <summary> with CSS - Pure CSS modal with details and summary
No Javascript for this pure CSS modal using native and HTML elements.
Author: Darinka Kostelnik (darinka_design)
Created on: August 25, 2019
Made with: HTML, CSS
Tags: css-only, popup, modal, pure-css

34. Collapsible Cards With <details>

HTML <details> & <summary> with CSS - Collapsible cards with <details>
Exploring how to create collapsible cards with . It's not perfect but I got some CSS practice out of it. It doesn't work very well on Safari. The grid layout is not ideal for the empty space it creates on opening a card. It would be cool to be able to animate the closing of the details ele...
Read More
Author: Raúl R Pearson (raulrpearson)
Created on: November 22, 2019
Made with: HTML, SCSS
Tags: details, summary, card, collapse

35. Animated <details> Expansion [Firefox Only…?]

HTML <details> & <summary> with CSS - Animated <details> expansion [Firefox only…?]
Saw the post on Smashing Magazine about expanding panels and I thought that might be worth looking into with clip-path, so here goes… Only seems to work in Firefox at the moment
Author: Christopher Kirk-Nielsen (chriskirknielsen)
Created on: November 19, 2019
Made with: HTML, SCSS
Tags: details, summary, clip-path, height transition

36. Accordeon Com HTML 5 Sem Js

HTML <details> & <summary> with CSS - Accordeon com HTML 5 sem js
Troquei as setas que vem por padrão com a tag details pelos sinais de + e - Para colocar os ícones em svg como background, usei o conversor que tem no link: https://css-tricks.com/using-svg/ Esses ajustes não são obrigatórios para fazer o accordeon funcionar
Author: Nathalie Almeida (natdrabik)
Created on: August 9, 2019
Made with: HTML, CSS
Tags: accordeon, html5, details, summary, no-js

37. FAQ Via Details Element

HTML <details> & <summary> with CSS - FAQ via details element
A case study of using details element for FAQ component.
Author: Tomáš Kout (Kout)
Created on: August 22, 2019
Made with: HTML, CSS
Tags: details, summary, faq

38. <details> Off-canvas Menu With Css Animation

HTML <details> & <summary> with CSS - <details> off-canvas menu with css animation
Like CSS Tricks recommended; I made a menu with detais/summary and animated it as much as possible. Quite easy though
Author: iGadget (iGadget)
Created on: March 24, 2019
Made with: HTML, SCSS
Tags: css, menu, off-canvas, details, summary

39. Summary And Detail Options - Native Accordion Or Inaccessible Bad?

HTML <details> & <summary> with CSS - Summary and Detail options - Native Accordion or inaccessible bad?
Author: Holger Hellinger (polent)
Made with: HTML, Less

40. CSS Quiz

HTML <details> & <summary> with CSS - CSS Quiz
Answer a few queries for CSS-related concepts, in this neat quiz which uses details and summary elements. Project entry for the weekly #CodepenChallenge.
Author: Gabriele Corti (borntofrappe)
Created on: May 17, 2018
Made with: HTML, CSS, JS
Tags: cpc-details, codepenchallenge, details, summary, quiz

41. Details & Summary Animation

HTML <details> & <summary> with CSS - Details & Summary animation
Author: Mathieu Lajoinie (matlaoij)
Created on: May 21, 2018
Made with: HTML, SCSS
Tags: details, summary