Deri Kurniawan
@Deri-KurniawanAll solutions
- Submitted 6 months ago
FAQ accordion
- HTML
- CSS
- JS
Regarding the Accordion structure, accessibility, ARIA attribute usage, and JavaScript DOM manipulation, I am seeking best practices.
- Submitted 6 months ago
QR code component
- HTML
- CSS
Maybe in terms of naming CSS custom properties, is it okay if we store variables in a class selector or id instead of storing them in a css pseudo-class like :root? although my intention of writing it that way is to make it reusable. or is there another better way?
.card { --padding: 16px; padding: var(--padding); max-width: calc(320px - var(--padding) * 2); }