Skip to content

graficdoctor/fe-13-faq-accordion-card-main

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 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

Links

My process

Built with

  • Semantic HTML5 markup
  • CSS custom properties
  • Flexbox
  • Mobile-first

What I learned

I started this excercise several months ago and somehow never could finish it, due to lack of time. Back then I also hadn't learned about positioning yet and had no idea how to accomplish the positioning of the images. At first I had used <button> to activate the Questions in the accordeon. In the meantime I did came across many articles discussing 'When to use the button-tag'. In order to keep it semantically correct. Too bad I didn't keep track of the solutions in GitHub yet.

Useful resources

Author