Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

Blog preview card main using HTML5, grid layout and flexbox

Riska997โ€ข 110

@Riska997

Desktop design screenshot for the Blog preview card coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


What are you most proud of, and what would you do differently next time?

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

Abdallah Hamadaโ€ข 280

@AbdullahHamadax

Posted

Congrats on completing the challenge โค๏ธ.

However, there are a few things you need to consider:

  1. The card's shadow is overexaggerated, keep it minimal like in the desired design.
  2. 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.
  3. 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 helpful

1
P
Koda๐Ÿ‘นโ€ข 3,810

@kodan96

Posted

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
Rupak Mukherjeeโ€ข 810

@hannibal1631

Posted

Nice job on this one.

1

Please log in to post a comment

Log in with GitHub
Discord logo

Join 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