Skip to content

seapagan-fem/faq-accordian-card

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Frontend Mentor - FAQ accordion card solution

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.

Table of contents

Overview

The challenge

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

Screenshot

Screenshot

Links

My process

Built with

  • Semantic HTML5 markup
  • CSS custom properties
  • Flexbox
  • CSS Grid

What I learned

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.

Useful resources

  • W3 Schools
    • This helped me to understand the multiple property values for background-position, especially the x% y% syntax I ended up using for the shadow image on desktop resolution.

Author