In the questions
- Can I replace the expand icon (▶) of the <details> element in absence of <summary> element?
- Can I replace the expand icon (▶) of the <details> element?
information was requested about the handling of the expand icon in HTML, the solution used was:
details>summary {
list-style-type: none;
}
details > summary::-webkit-details-marker {
display: none;
}
details>summary::before {
content: "\25ba";
padding-right:4px;
font-size: 80%;
}
details[open]>summary::before {
content: "\25bc";
padding-right:4px;
font-size: 80%;
}
thought this is not working in XHTML documents.
So the question is: how to set the icon in a XHTML document?
- preferably in css but also js is possible
- preferably with and without
<summary>
element
The summary 3
The detailsThe summary 3
The details