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

Responsive Recipe Card

Maryam Garbaβ€’ 70

@masha-a-m

Desktop design screenshot for the Recipe page coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


What challenges did you encounter, and how did you overcome them?

I couldnt make the inage responsive and i still think its not perfect

What specific areas of your project would you like help with?

resizing the image on different screens

Community feedback

Dylan de Bruijnβ€’ 3,190

@DylandeBruijn

Posted

@masha-a-m

Hiya! πŸ‘‹

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

Things you could improve ✍️

  • Try experimenting with the CSS layout tool Flexbox, it will help you greatly structuring elements on your webpage.

  • 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.

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

  • Try using using relative CSS units like rem and em they make your layout more adaptable.

  • You don’t need to put width: 100% on block elements, they already take up the full width of their parents by default. Your .content element already is a block element, it's not necessary to put display: block on it.

  • Try centering your recipe using Flexbox instead of margin and padding.

I hope you find my feedback helpful! 🌟

Let me know if you have more questions and I'll do my best to answer them. πŸ™‹β€β™‚οΈ

Happy coding! 😎

Marked as helpful

0

Maryam Garbaβ€’ 70

@masha-a-m

Posted

@DylandeBruijn thank you very much. this very helpful!

0
Woldu Tsegazgiβ€’ 910

@weldu0

Posted

  1. use max-width for .content in this case you can use max-width: 800px; which looks equivalent to the orginal design.
  2. for the image since it is in a container use percenteage instead px(pxiel). for example:
.content img {
  width: 100%;
}
  1. you can finally remove Media Queries

Marked as helpful

0

Maryam Garbaβ€’ 70

@masha-a-m

Posted

@weldu0 thank you very much!

0
Woldu Tsegazgiβ€’ 910

@weldu0

Posted

@masha-a-m your welcome.

Marked as helpful

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