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

Recipe Page

P
Jesse Gileā€¢ 40

@jessegile

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?

Getting the media queries to work right without having to remove the image from the main div.

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

Getting the image to extend to the edges when viewed on mobile screen.

I used the div I had contained the image in and the body to remove margin and padding and add width.

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

Bullet point sizing and spacing

Community feedback

@DavidCasanova83

Posted

Hey, very good job ! Your design matches perfectly āœ…āœ…

Some tips about web accessibility :

Use HTML5 semantic tags to improve the document structure.

  1. Image Container:

    • Replace <div class="image-container"> with <figure class="image-container"> and add a caption if needed using <figcaption>.
  2. Header:

    • Add a <header> tag to group the title and description of the recipe.
  3. Sections:

    • Use <section> for different parts such as ingredients, instructions, and nutritional information.

Ensure that your CSS colors provide good contrast for visually impaired users. Use tools like the Colour Contrast Analyser to check the contrast.

Add ARIA elements to improve navigation with screen readers. For example, use aria-label or aria-labelledby for important sections.

Ensure that links have descriptive text to clearly indicate their destination.

  • For example, replace "Coded by Jesse Gile" with "Coded by Jesse Gile - Visit my website" to be more explicit.

Marked as helpful

0

P
Jesse Gileā€¢ 40

@jessegile

Posted

@DavidCasanova83 Thanks! I refactored with your suggestions.

0
Justinā€¢ 120

@andrew-j-brown

Posted

Hi Jesse!

As you mentioned bullet point sizing and spacing -

padding-left can be used on the list element to add some space between the li bullet and the li content. To shrink the bullet itself, you can use font-size. I'll place some examples below:

li {
    ...
    padding-left: 1rem;
    ...
}

ul > li::marker {
    ...
    font-size: 0.8rem;
}

Hope this helps, and have a great day!

Marked as helpful

0

P
Jesse Gileā€¢ 40

@jessegile

Posted

@andrew-j-brown

Thanks Justin!

That fixed it!

1

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