Design comparison
Community feedback
- @denieldenPosted over 2 years ago
Hi Ahmad, great work on this challenge! 😉
Here are a few tips for improve your code:
- remove all
margin
from.container
class because with flex they are superfluous - add
transition
in the FAQ when it opens - instead of using
px
use relative units of measurement likerem
-> read here
Overall you did well 😁 Hope this help!
Marked as helpful1@mupinnnPosted over 2 years ago@denielden Hi Deniel, thanks for the feedback. I really appreciate it!
Thanks again for reminding me to remove the margin when using flex, I really forgot about it 😂
Btw, any reference for animating when opening the accordions using
<details>
element? It's easy to do it when using<div>
or another meaningless/non-semantic element.I use px for the sake of simplicity for this solution since the card doesn't shift that hard. I never use it in real-life projects.
Thank you so much for the advice and feedback! It's really helpful 😊
1@denieldenPosted over 2 years ago@mupinnn You are welcome! Animating using the
details
element is done in the same way as any other non-semantic element. Keep it up :)0@mupinnnPosted over 2 years ago@denielden Thank you! I'll try it on and update it later
1 - remove all
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