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 made with HTML and Css

@DoneWithWork

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 are you most proud of, and what would you do differently next time?

  1. Really glad that I managed to make this website responsive on both mobile and desktop
  2. Learned how to style tables a little

Would probably use SASS CSS next time to simplify CSS code or something

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

  1. Messy css
  2. Arrangement of layout

I watch a couple of youtube videos and use MDN docs for additional styles

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

  1. is my css a bit messy?
  • how can I improve and write more efficient CSS

Community feedback

@DylandeBruijn

Posted

@DoneWithWork

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 🎉

  • Responsive
  • Use of semantic HTML elements
  • Clear descriptive CSS classes
  • Use of CSS custom properties

Things you could improve ✍️

  • Add a bit of padding to your body element so the card has room to breath on smaller viewports.

  • Remove the border-radius of the image on smaller viewports so it's more in line with the design.

  • Remove the wrapper <div> of the image, you can style the image directly if you want.

  • You can write this padding: 20px 20px 20px 20px; as padding: 20px; it's shorthand for the same thing.

  • You could remove the <thead> element as it's empty.

  • Try setting the font-family on the body. Other elements will inherit the font-family from their parent due to the CSS cascade. If you want to have a different font-family for the headings you can select h1, h2, h3, h4, h5, h6 and give them that font-family instead.

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

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