Accordion-card site using HTML, CSS, Flexbox and Grid
Design comparison
Solution retrospective
Hi everyone! this is my second challenge, i had some problems positioning the background images, I appreciate if you could give me recommendations to improve on it.
Community feedback
- @ApplePieGiraffePosted over 3 years ago
Hey there, Daniel M.! π
Nice to see you complete your second Frontend Mentor challenge! π Good effort on this challenge! π
I suggest only using
<article>
tag when you have a heading inside them to identify them and they make sense with additional context from a parent element. In this challenge, I think you can simply use another tag (such as<li>
) for the FAQs.Your positioning of the background images seems okay! π You could add the floating cube as a pseudo-element to the accordion card and absolutely position it relative to the card itself. In the mobile layout, I'd recommend adding a little more space between the top of the card and the top edge of the page so that the top of the hero image doesn't get cut off at certain screen heights.
And think the next step you can take towards adding on to and improving your solution would be to make the accordion card interactive by opening/closing the various FAQs when they are clicked on. π
Keep coding (and happy coding, too)! π
0
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord