This is a solution to the FAQ accordion card challenge on Frontend Mentor. Frontend Mentor challenges help you improve your coding skills by building realistic projects.
Users should be able to:
- View the optimal layout for the component depending on their device's screen size
- See hover states for all interactive elements on the page
- Hide/Show the answer to a question when the question is clicked
Desktop view
Mobile view
- Solution URL: https://www.frontendmentor.io/solutions/faq-accordion-card-0F9AS9Ay1x
- Live Site URL: https://Milleus.github.io/fm-faq-accordion-card/
- Semantic HTML5 markup
- CSS custom properties
- Flexbox
- CSS Grid
- Mobile-first workflow
- Practice using
<details>
and<summary>
to create accordions without JavaScript - Practice using background image related properties
- To remove the summary disclosure triangle for webkit-based browsers such as Safari, use
summary::-webkit-details-marker { display: none }