
Design comparison
Community feedback
- @MarziaJaliliPosted 3 months ago
Well done buddy,
Adjusments you could apply:
- set the lines below in the
body
selector to centerize the card:
body { display: grid; place-items: center; min-height: 100vh; }
This ensures that the
card
will be centerize even when the answers are expanded.Get rid of two lines in
style.css
:- line 29:
margin: 10% 50px;
- line 36:
margin-bottom: 15px;
- Also, avoid using
px
for thefont-size
. It happens to cause some issues. You could userem
instead.
Other than this your solution is spot on, man😎
Marked as helpful0@musiolmarcoPosted 3 months ago@MarziaJalili 🤝 Thank you for these useful tips.
I actually did not even realize that the card is centered. I just thought it's a big padding from the top and it's just centered horizontally... 😄
But I will use this tips for my future projects! 🚀
1 - set the lines below in the
- @TedJenklerPosted 2 months ago
Hi @musiolmarco,
I have some suggestions to help improve your project:
Semantic Elements: I noticed you're using <div> elements. Consider replacing these with <footer> and <main> to align with HTML5 best practices. The <header> can be removed as it's semantically incorrect for this project. Typically, <header> should be used for elements like <nav> or a logo, at the top of a page.
Animations: To make your project stand out more, consider adding animations. I recommend watching a YouTube tutorial on "accordion with animation" and then refactoring your code without external help. This will enhance the user experience and give your project a polished look.
SEO Enhancements: Add SEO title and description tags to all your projects. Try sharing your project on Discord before and after implementing these changes to observe the differences in visibility and engagement. This practice will significantly improve SEO and click-through rates on real projects.
Keep up the great work!
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