
Design comparison
Solution retrospective
I learn how to style li and to google everyting i want to known.
What challenges did you encounter, and how did you overcome them?I don't known how to style the li element, but i eventually learned it from Internet.
What specific areas of your project would you like help with?Am i fufilled right, It took me two or more hours to write this page.
Community feedback
- @khatri2002Posted 3 months ago
Your developed solution is excellent! To refine it further and align it perfectly with the given design reference, here are a couple of improvements that can be made:
1. Consistent Padding for 'Preparation Time' Div: The 'Preparation Time' div should have an equal amount of padding on the top and bottom to maintain visual consistency. However, in your solution, only
padding-bottom
has been applied. To fix this, consider usingpadding-block
, which applies bothpadding-top
andpadding-bottom
uniformly.now, the immediate child of this div is an
<h3>
tag, which comes with some default margin applied by browsers. To achieve precise alignment, explicitly set this margin to0
.- CSS Reset Concept: In front-end development, developers often use CSS resets or normalize styles to remove inconsistencies across browsers. These resets remove default styles like margins, paddings, and borders so that all elements have a consistent base. By resetting the
<h3>
tag’s margin, you ensure predictable and accurate spacing within the div.
2. Image-Omelette Positioning on Smaller Width Devices: As per the design reference, the
image-omelette
should not be affected by the padding of the card on smaller devices. Instead, it should touch the card's border directly. This can be handled in the responsive design.These refinements will ensure that your solution matches the given design reference in both desktop and mobile views.
Excellent work so far! happy coding! 🚀
0 - CSS Reset Concept: In front-end development, developers often use CSS resets or normalize styles to remove inconsistencies across browsers. These resets remove default styles like margins, paddings, and borders so that all elements have a consistent base. By resetting the
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