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

Responsive Recipe page

@tiagocostarebelo

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?

I am proud of maintaining a solid understanding of HTML and CSS basics. It’s rewarding to see that my foundational knowledge remains strong. Next time, I would like to focus on adding more accessibility features, such as ARIA roles, to ensure my projects are more inclusive and user-friendly.

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

I encountered two minor challenges, which are documented in the README file of this project. The first challenge was figuring out how to add borders to our table rows. After some research, I found a Stack Overflow thread that explained the necessity of using the border-collapse: collapse; property in the table styling to effectively apply borders to table elements. The second challenge wasn't really a hurdle but rather a noteworthy discovery: the usefulness of the "contains" attribute selector in CSS. This selector has proven to be very handy in targeting elements that contain specific text.

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

I want help with expanding the accessibility features of my project. While I have a basic understanding of HTML and CSS, I want to ensure that my project is as inclusive and user-friendly as possible. Specifically, I seek guidance on implementing ARIA roles, enhancing keyboard navigation, improving screen reader compatibility, and ensuring color contrast meets accessibility standards. Any advice or resources on best practices for accessibility would be greatly appreciated.

Community feedback

P

@ownedbyanonymous

Posted

Nice solution, so nice that l am using it to understand where l had it wrong in my solution as l ahd a challenge of content overflowing on smaller devices. Will post more detailed feedback as l go through the codebase.

1

@tiagocostarebelo

Posted

@ownedbyanonymous Thanks for the feedback. Feel free to ask anything if you want.

0
P

@ownedbyanonymous

Posted

Hie 👋🏾@tiagocostarebelo,

By going through your code l was able to figure out why my content was overflowing on smaller devices and fix it as well. The only remaining issue is making the image take the full width of the viewport on smaller devices. Here is a link to my repo https://github.com/ownedbyanonymous/recipe-page-main

0

@tiagocostarebelo

Posted

@ownedbyanonymous From what I could see, you have an <article> element wrapping the entire content. This has a width: 80%. Set a media query for width bellow or equal to 425px for example, and set that element width to 100%. Then remove the margin-top from the image and you'll see it takes the full width. You will have to adjust the padding left and right of all the remaining modules, but this could be a solution to you having the image go full width on smaller devices. Hope it helps. Let me know how it goes :)

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