HTML/CSS for layout, style & responsive. Javascript for interactive.
Design comparison
Solution retrospective
I am becoming good structuring the design and styling using html and css. I am still working to improve delivery time.
What challenges did you encounter, and how did you overcome them?Initially I find it difficulty achieving the error page especially making it responsive and dynamic. However i was able to overcome this through further study and experimentation.
What specific areas of your project would you like help with?how to effectively adopt the reusable codes strategies for efficiency.
Community feedback
- @danielmrz-devPosted 4 months ago
Hey there! šš½āāļø
Congrats on completing the challenge! ā
Your project looks fantastic!
Here's a tip to make it even better:
Using
margin
and/orpadding
isn't always the best way to center an element. Try this super efficient method to center an element vertically and horizontally:š Apply this CSS to the body (skip position or margins to make it work correctly):
body { min-height: 100vh; display: flex; justify-content: center; align-items: center; }
Hope this helps!
Keep up the great work!
0@tobiekwePosted 4 months agoHi@danielmrz-dev, I am super excited for your feedback. Many thanks.
1 - @krushnasinnarkarPosted 4 months ago
Hi @tobiekwe,
Your solution is great and well-structured! However, here is some suggestions:
Centering the Card in the Main Element: Adding
height
andalign-items: center
to the main element ensures the card is centered both vertically and horizontally.main { display: flex; justify-content: center; align-items: center; padding: 2rem; height: 100vh; /* Ensures full height and centers the card */ }
Summary By adding
align-items: center
andheight: 100vh
to the main element, you can ensure that the card is perfectly centered in the viewport. This change enhances the layout's visual appeal and improves the user experience by making the content more accessible and aesthetically pleasing.Feel free to reach out if you have more questions or need further assistance.
I hope you find my feedback valuable, and I would appreciate it greatly if you could mark my comment as helpful if it was!
0@tobiekwePosted 4 months agoHi@krushnasinnarkar, Thanks for the feedback. I really appreciate.
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