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

khalagai 300

@khalagai

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?

Multiple layouts on the same page.

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

My major challenge was coloring the numbers in the ordered list separately. Through research online where I got a step by step guide on stack overflow.

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

Any advice on how I can improve my code would be much appreciated.

Community feedback

P
Hexerse 460

@Hexerse

Posted

Hello !, I see that you have used divs for almost everything. There are other things you can do to implement the objects you want for instance.

You can use table to generate a table format for you, here is the HTML tr = table row th = table head td = table data

<div class="nutrition"> <h2 class="smallheading">Nutrition</h2><br> <p class="ingredientlist" id="nutritiontext"> The table below shows nutritional values per serving without the additional fillings</p> <div class="nutritiontable"> <table> <tr> <th>Calories</th> <td>277kcal</td> </tr> <tr> <th>Carbs</th> <td>0g</td> </tr> <tr> <th>Protein</th> <td>20g</td> </tr> <tr> <th>Fat</th> <td>22g</td> </tr>

Here is the css

table{ margin-left: 30px; margin-right: 30px; width: 100%; border-collapse: collapse; }

th,td{ text-align: left; padding: 15px 20px; border-bottom: 1px solid hsl(30, 18%, 87%); }

th{ font-family: 'Outfit'; font-weight: 400; color: hsl(30, 10%, 34%); }

td{ color: hsl(14, 45%, 36%); font-family: 'Outfit', sans-serif; font-weight: 600; }

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