Design comparison
SolutionDesign
Solution retrospective
What are you most proud of, and what would you do differently next time?
The way I was able to insert an image in html
What challenges did you encounter, and how did you overcome them?inserting an image
What specific areas of your project would you like help with?positioning the content center
Community feedback
- @DavidCasanova83Posted 5 months ago
Centering Your Content
To center your content, you can use Flexbox:
body { display: flex; justify-content: center; align-items: center; height: 100vh; margin: 0; }
Nutrition Section Tip
For the nutrition section, it's better to use a table for semantic clarity and better understanding:
<table> <tr> <td>Calories</td> <td class="values">277kcal</td> </tr> <tr> <td>Carbs</td> <td class="values">0g</td> </tr> <tr> <td>Protein</td> <td class="values">20g</td> </tr> <tr> <td>Fat</td> <td class="values">22g</td> </tr> </table>
0
Please log in to post a comment
Log in with GitHubJoin 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