FAQ Accordion card with Javascript

Solution retrospective
Any feedback would be great! Sometimes I feel that I'm not sure the best way to go about positioning elements with padding and margins or with absolute and relative positioning, etc.
Please log in to post a comment
Log in with GitHubCommunity feedback
- @codeswithroh
First of all appearance-wise, bigger fonts and line-height would be a little better. Next about the coding part, I think that instead of setting a width in % for every component just write the html and give some padding and margin to it and instead of writing media query for each element separately try to write it in one place but its just my opinion, there's no harm in your style. For positioning I would tell you to follow the process I mentioned above because I personally don't like absolute or relative positioning because that makes the responsiveness a bit hard. But at the end you did a great work
Join 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