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

A pixel perfect solution to this project well almost

@AReactDeveloper

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?

Well this is my solution to this project i tried to make it as pixel perfect as possible thank you if you interesting in talking to me here is my ig thank you @chad.abdelhak

Community feedback

@DylandeBruijn

Posted

@AReactDeveloper

Hiya! 👋

Congratulations on your solution, it looks very close to the design! I can tell you put a lot of effort into it.

Things I like about your solution 🎉

  • Use of semantic HTML elements

Things you could improve ✍️

  • I suggest adding a bit of padding to your body element so the card has some space around it on smaller viewports.

  • You could add a min-height: 100vh to your body element so it takes up the full height of the viewport while still being able to grow when the content inside it grows.

  • You don't need width: 100vw on your body. block elements already take up the full width of their parent by default.

  • Try using relative CSS values like rem and em.

  • I suggest not setting a fixed width and height on an element because you will run into overflow issues. A height of auto is fine, which block elements already are by default.

  • Try making your solution responsive.

  • Try experimenting with CSS variables, they help you make your CSS values more reusable across your code.

I hope you find my feedback valuable, and I would appreciate it greatly if you could mark my comment as helpful if it was! 🌟

Let me know if you have more questions and I'll do my best to answer them. 🙋‍♂️

Happy coding! 😎

Marked as helpful

1

@AReactDeveloper

Posted

@DylandeBruijn Thank you so much for your golden advices i can tell they came out of experience i did try rem em but i was lazy didn't open a converter cause i was trying to get the design as close as possible the comment was very helpful actually thank you ill take this points with me in the next challenge thank you for taking the time to advise me regards

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