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

@radhaBharadwaj

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 challenges did you encounter, and how did you overcome them?

arranging the bullets in center with different colorsm

Community feedback

Wendy 1,890

@wendyhamel

Posted

Hi,

You can change the color of the bullets with li::marker { color: #7B284F } if you use the original list style items. They will be centered automatically too, so that solves two problems at once.

Another solution is to set your list items as display: flex with align-items: center. This will set your custom ::before bullets to center horizontally.

Apart from your question, I noticed a few other thing you may want to consider to improve your solution to this challenge.

The image of the recipe stretches horizontally on screens between mobile and desktop. As this image is not a background, background-size: cover has no effect. On an image you can use object-fit: cover and you may want to remove the set height restriction of 150px to prevent the image from being cut off top and bottom. But only if you don't like it to stay a set height.

Happy coding!

Marked as helpful

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