Design comparison
Solution retrospective
I think I got the rough layout, sizing and sections mostly correct. It was a challenge without the figma file but just feeling out the site and double checking the colors got me most of the way there.
Next time I think I'd pick my own recipe and do that. I might include some pictures of steps when making the food, or even of the ingredients. That would add another layer of complexity.
What challenges did you encounter, and how did you overcome them?I had trouble with the tables because I don't use it much, and also some issues with the counter and the text dipping underneath it.
Initially I used divs in a grid and it turned out okay, the only issue then being that it wouldn't be semantically coded, and also it's possible with counters and ol and li elements, but it did take me a lot of research and checking other peoples solutions to figure them out.
What specific areas of your project would you like help with?Checking the tables would be great, also checking the ol and the li and the absolutely positions counters before would be great. I think this is the correct solution that retains the semantic elements, but I'm also not entirely sure it's done right!
Community feedback
- @VandorpKePosted 5 months ago
I don't really see the use for counters yet. For example if you wanted the numbers in the instructions list (1. / ... / 6.) then 'ol' does that automatically. If you wanted to change the collour or something you better could've used the 'li:marker'. This would've targeted the marker that you wanted to change. Hope this helps! If not, ask away.
1@BegShooPosted 5 months ago@VandorpKe Thank you for your comment!
The counter is used because the ol numbers default to a different font to the original design. I couldn't work out how to get the ol to be the same font as the main text (Outfit in this case), so the counter seemed like the best way to achieve this, and then using the before pseudo element and absolute positioning to put it in the right place.
Changing the color is then done with the pseudo element selector, so that's how I ended up with that!
If you know how to change the font for the default ol then that would be great info! The li:marker selector is also really good to know, so thank you for that!
Edit: just realized you mean that you can target the numbers with marker and then style the font that way! Will try this and update the project if it works! Thanks so much for the tip!
1
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