Blog preview card main using HTML5, grid layout and flexbox
Design comparison
Solution retrospective
I'm most proud of completing the project and achieving the desired outcome. However, next time, I aim to conduct more research on different layout methods beyond flexbox and grid. Exploring alternative approaches will allow me to compare their strengths and weaknesses, enabling me to make more informed decisions in future projects.
What challenges did you encounter, and how did you overcome them?One of the main challenges I faced was achieving the desired layout. Despite encountering some difficulties, I persevered and managed to create a layout that, while not exactly as I envisioned, still met my expectations. I'm satisfied with the outcome, considering the obstacles I encountered along the way.
What specific areas of your project would you like help with?I'm currently seeking assistance with the CSS layout of my project. Specifically, I'm struggling with centering elements within a container using Flexbox. Despite my efforts, I haven't been able to achieve the desired alignment. Any guidance or suggestions on how to properly centre elements would be greatly appreciated. And any other feedback is welcome.
Community feedback
- @AbdullahHamadaxPosted 6 months ago
Congrats on completing the challenge โค๏ธ.
However, there are a few things you need to consider:
- The card's shadow is overexaggerated, keep it minimal like in the desired design.
- You've mentioned grid layout in the solution's title, I don't see anything related to grid in the code. If you had plans doing this project with grid, it's not needed at all. Google grid css designs and you'll know which designs would actually require grid.
- Lastly, the card itself isn't perfectly centered, so have a look at your code and see why it isn't. ( Hint : it's the width and height you gave to the container, alongside the 100px padding )
Marked as helpful1 - @kodan96Posted 6 months ago
hi there! ๐
you can center your content with Flexbox if you apply these to the
body
tag:body { min-height: 100vh; display: flex; justify-content: center; align-items: center; }
Hope this was helpful ๐
Good luck and happy coding! ๐
2
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