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 | Mobile |
---|---|
- Solution URL: https://github.com/albina0104/faq-accordion-card
- Live Site URL: https://albina0104.github.io/faq-accordion-card/
- Semantic HTML5 markup
- Sass
- Mobile-first workflow
- Completed the challenge without using JavaScript
How to make sure the markers of the <summary>
elements are hidden in all browsers:
summary {
list-style-type: none;
&::marker,
&::-webkit-details-marker {
display: none;
}
}
- Frontend Mentor - @albina0104
- GitHub - albina0104