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
- Solution URL: Frontend Mentor
- Live Site URL: Github Pages
- Semantic HTML5 markup
- CSS custom properties
- Flexbox
- CSS Grid
Styling the images was a challenge. While the finished page looks close to the
brief, I'm not sure if this is the best way to do it. However, I did learn a lot
about multiple background images and the css background-image
style plus it's
associated background-position
and background-size
tags.
Hopefully my Semantic HTML is better this time too.
- W3 Schools
- This helped me to understand the multiple property values for
background-position
, especially thex% y%
syntax I ended up using for the shadow image on desktop resolution.
- This helped me to understand the multiple property values for
- Website - Grant Ramsay
- Frontend Mentor - @seapagan
- Twitter - @gnramsay_dev