Design comparison
Solution retrospective
Solving a problem is always a challenging task, but finishing it despite the difficulty is rewarding.
What challenges did you encounter, and how did you overcome them?I came to realize that to develop a webpage based on a design one must fully understand the design. Everything was going smoothly until the part that I needed to use flex box, it was challenging for me to put each element in the exact location. So I checked how the padding and height worked together, it helped me understand how to use padding and height
What specific areas of your project would you like help with?I had no prior knowledge on media query as a result the website is not responsive.
Community feedback
- @AdrianoEscarabotePosted 2 days ago
Hello Fraol T, how are you? I was really pleased with your project, but I’d like to offer some advice that might help:
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 spot on.
Hope it’s helpful to you. 👍
Marked as helpful1@Fraol-TPosted 2 days ago@AdrianoEscarabote thank you for taking some time to write me a solution for my problem and your advice was spot on. I was looking for other ways but it seems like you way is simple and easy. I will try to use a your method to improve my web development skills.
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