Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted 9 months ago

Recipe page using CSS #

uptown_girl•560
@uptowngirl757
A solution to the Recipe page challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


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

I need feedback on managing the width of a container as the screen size decreases. I've set max-width: 50%, which looks fine on larger screens, but it behaves oddly on smaller screens. To fix this, I currently use a media query at 1000px to make the container full width, but I'm not entirely comfortable with that approach. I'd appreciate suggestions on better ways to handle this.

Additionally, I don't fully understand border-collapse in tables. When I don’t include the following CSS:

.recipe__nutrition-table {
  width: 100%;
  border-collapse: collapse;
}

the borders don't appear at all, which seems strange to me. Can someone explain why this happens?

Why is the preview photo showing a white background at the bottom 20% of my page, while the live site displays correctly?

Can I get an explanation for this difference?

Code
Loading...

Please log in to post a comment

Log in with GitHub

Community feedback

No feedback yet. Be the first to give feedback on uptown_girl's solution.

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

Stay up to datewith new challenges, featured solutions, selected articles, and our latest news

Frontend Mentor

  • Unlock Pro
  • Contact us
  • FAQs
  • Become a partner
  • Use cases

Explore

  • Learning paths
  • Challenges
  • Solutions
  • Articles

Community

  • Discord
  • Guidelines

For companies

  • Hire developers
  • Train developers
© Frontend Mentor 2019 - 2025
  • Terms
  • Cookie Policy
  • Privacy Policy
  • License