Articles Tagged
More Details on `details`
A lot of chatter around the ol’ <details>
and <summary>
elements lately! I saw Lea Verou recently tweet an observation about the element’s display
behavior and that sorta splintered into more observations and usage notes from folks, including a revived …
Spicy Sections
What if HTML had “tabs”? That would be cool, says I. Dave has been spending some of his time and energy, along with a group of “Tabvengers” from OpenUI, on this. A lot of research leads to a bit …
Shadow Roots and Inheritance
There is a helluva gotcha with styling a <details
element, as documented here by Kitty Giraudel. It’s obscure enough that you might never run into it, but if you do, I could see it being very confusing (it would confuse …
Put a Background on Open Details Elements
One thing that can be just a smidge funky about the <details>
element is that, when open, it’s not always 100% clear what is inside that element and what isn’t. I’m not saying that always matters or that it’s a …
How to Play and Pause CSS Animations with CSS Custom Properties
Let’s have a look CSS @keyframes
animations, and specifically about how you can pause and otherwise control them. There is a CSS property specifically for it, that can be controlled with JavaScript, but there is plenty of nuance to get …
Two Issues Styling the Details Element and How to Solve Them
In the not-too-distant past, even basic accordion-like interactions required JavaScript event listeners or some CSS… trickery. And, depending on the solution used, editing the underlying HTML could get complicated.
Now, the <details>
and <summary>
elements (which combine to form …
A (terrible?) way to do footnotes in HTML
Terence Eden poked around with a way to do footnotes using the <details>
/<summary>
elements. I think it’s kind of clever. Rather than a hyperlink that jumps down to explain the footnote elsewhere, the details are right there next …
Exploring What the Details and Summary Elements Can Do
We’ve mentioned before just how great the <details>
and <summary>
elements are. They’re great for quickly making accordions that are accessible to touch, mouse, and keyboard input:
<details>
and <summary>
can even be used to play/pause gifs…