Design comparison
Solution retrospective
I did not encounter one challenge that is normally we apply the width and height to containers but in this project when i applied width and height in the .container CSS style.It didn't fix anything.I struggled with it and applied to body lastly.It worked but honestly i don't know why it worked. Can anyone suggest me why it worked?
Is it because using flexbox or any other style that i didn't do correctly.
Thank you for the response.
What specific areas of your project would you like help with?I need help with semantic HTML and accessibility properties.
Community feedback
- @AdrianoEscarabotePosted 28 days ago
Hi Manisha3196, hope you're doing well! I loved how your project turned out, but I’ve got a few suggestions that could be useful:
Using Flexbox or Grid on the
body
to center elements ensures a more responsive and adaptive layout, fitting different screen sizes seamlessly. It avoids manual calculations and constant adjustments needed withmargin
,padding
, or absolute positioning. These techniques provide more consistent alignment and simplify the code.flexbox:
body { display: flex; justify-content: center; align-items: center; min-height: 100vh; }
grid:
body { display: grid; place-content: center; min-height: 100vh; }
The rest is fantastic.
Hopefully, you'll find it helpful. 👍
Marked as helpful0@Manisha3196Posted 28 days agoThank you for your feedback.I understood you point.Its really helpful to me @AdrianoEscarabote
1
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