python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
Add padding to <details> without decreasing width of <summary>
I'm trying to add left & right padding to the details text when the details block is open, without the padding the text runs right up to the edge of the background and looks crowded. However, when...
chad
Votes: 0
Answers: 2
Details summary h4 hover color
I am trying to color the h4 text inside a details summary upon hover, but the color change only takes effect when hovering DIRECTLY OVER the actual h4 text, how can I modify my CSS to change the h4 te...
chad
Votes: 0
Answers: 1
Create Eventlisteners for detailstag dynamically?
Why is this working:
const details = document.querySelector('details')
document.getElementById("details1").addEventListener("toggle", event => {
if (details1.open) {
changeText1("open");...
Stefanovici
Votes: 0
Answers: 4
How to automatically close an open details tag when another detail is clicked with React?
The Problem
I have a list of detail tags and I would like to have an opened details tag close when another one opens.
I am dynamically rendering a list of details tags
Stack
I am using React and hooks...
Tyler Morales
Votes: 0
Answers: 2