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

Tok1oโ€ข 350

@ridhofaaauzi

Desktop design screenshot for the Blog preview card coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Community feedback

@MelvinAguilar

Posted

Hello there ๐Ÿ‘‹. Good job on completing the challenge !

I have some suggestions about your code that might interest you.

  • To center the element vertically, you need to set a height for the container where you apply flexbox. Without a height, there's no reference point for vertical alignment. I noticed you're using a padding to try to center. Later, you can use align-items: center to center the element.
.container {
  display: flex;
  justify-content: center;
  /* flex-wrap: wrap; */
  /* margin-top: 100px; */
  min-height: 100vh;
  align-items: center;
}

I hope you find it useful! ๐Ÿ˜„

Happy coding!

Marked as helpful

1

Tok1oโ€ข 350

@ridhofaaauzi

Posted

@MelvinAguilar Thank you for your assistance and guidance.

0
Shaima'a Redhwanโ€ข 80

@Shaimaa12319

Posted

Hello @ridhofaaauzi!

Your project looks very good!

You can do the black box-shadow of the card like this:


    box-shadow: 7px 7px 0 black;
    border: 1px solid black;

Hope it helps!

Other than that, great job!

Marked as helpful

0

Tok1oโ€ข 350

@ridhofaaauzi

Posted

@Shaimaa12319 Thank you for your assistance and guidance.

0

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