Design comparison
Solution retrospective
I am proud of the mobile-first approach I took when implementing this solution. If I were to do it differently next time, I would have put more effort into a) keeping my CSS file organized and b) the desktop and tablet styles.
What challenges did you encounter, and how did you overcome them?One challenge I faced was customizing the markers for ordered and unordered lists. I didn't know that you could modify them using ul li::marker
or ol li::marker
, I read a few articles when I figured it out.
I had trouble adjusting the height of the .recipe-card
container for desktop and tablet views. I ended up putting a set margin on the top and bottom of the container. If anyone has a more elegant solution, please let me know.
Community feedback
- @R3ygoskiPosted 5 months ago
Hello Jacob, congratulations on completing your project, it turned out very well.
Regarding your question about how to define the height of the card, I would like to start by saying that the way you did it is not wrong, you did it correctly. The only tip regarding this would be to use
margin
as shorthand, like this:margin: 150px 0
, which would apply the margin to the top and bottom and 0 to the sides. Additionally, you could usepadding
on yourmain
selector as well, which would create the correct spacing inside the main element, something likepadding: 150px 0
.A suggestion: I recently saw that you mentioned in one of your solutions about using a separate CSS file from HTML, which was absolutely correct, and I would like to say that you can also use responsive design this way by creating, for example, a
responsive.css
file where all the responsive CSS would be, thus bringing more organization.Now a tip: try to use more semantic tags in your project, as this not only helps with SEO but also with the accessibility of the page. I noticed that you used several
<div>
tags, some of which could be replaced by these semantic tags. I'll list a few:<div class="recipe-card">
could be changed to a<main>
since this tag contains the main content, but it could also be<article>
as all the content here is self-explanatory and independent.<div class="img-container">
could be changed to a<figure>
since it contains only an image.<div class="content-container">
could also be changed to an<article>
, as the content is self-explanatory.
And again, congratulations on completing the project. If anything I said was not clear, please ask below and I will try to help in the best way possible.
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