Design comparison
Solution retrospective
Give me some suggestions what I can improve.
Community feedback
- @0xabdulkhaliqPosted over 1 year ago
Hello there 👋. Congratulations on successfully completing the challenge! 🎉
- I have other recommendations regarding your code that I believe will be of great interest to you.
CSS 🏷️:
- You can minimize the lines of code by changing the
flex
layout togrid
layout
body { display: flex; flex-direction: column; justify-content: center; align-items: center; }
- Instead, try this following code
body { display: grid; place-items: center; }
HOSTING:
-
Instead of hosting this solution on
replit
, you can try outGithub
pages for hosting. -
You can follow along this tutorial video from The Net Ninja
-
Because hosting in github pages will gives you more control than other hosting services like netlify or replit
I hope you find it useful! 😄 Above all, the solution you submitted is great!
Happy coding!
Marked as helpful1 - @HassiaiPosted over 1 year ago
There is no need to give the body a width value.
Replace the height in .box with a padding value for all the sides, this will prevent the content from overflowing on smaller screens and its a responsive replacement.
padding:1em
.Hope am helpful.
Well done for completing this challenge. HAPPY CODING
Marked as helpful1
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