Custom Styling for details and summary in CSS


Style the details and summary elements for custom collapsible content sections.

Source Code

summary {
    font-weight: bold;
    cursor: pointer;
}
details[open] summary {
    color: #0056b3;
}
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments