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

Recipe page using styling variables

@AndreeaKiara

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 specific areas of your project would you like help with?

Facing some issues with the margins not showing properly on screenshot, looks okay on the deployed site. Will look into it

Community feedback

JdccDev 60

@jdcc1024

Posted

Hi Andreea,

I took a look at your margin issues. On my screen the deployed app looks similar to what was shown in your chalenge screenshot. Maybe it has to do with our screen resolution?

It seems some of the code you added in the beginning could be causing the problem. Removing this fixes your recipe card's y-axis placement.

/*    3. Allow percentage-based heights in the application  */
html,
body {
  height: 100%;
}

Then you can adjust the margin-top of the card class to make it look closer to the screenshot.

Another suggestion you can look into is using the <table> element for your nutrition list at the end. a table with 100% width will look closer to the example as well :)

Keep up the great work!

Marked as helpful

1

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