Design comparison
Solution retrospective
My main question concerns the items on the lists for this project. Both the bullets in unordered lists and the numbers in ordered lists had specific colors, so to achieve this style I applied the color property to the <li> of the lists. And I placed the <li> texts inside <p> and changed the color of these texts to match the design. I made each of these <p> have an inline display and this made it impossible for me to add that small design spacing that exists between the text and the list marker.
I want to know if there is a better way to style the markers without complicating the text styling too much and in my case, if the way I did it was possible to add spacing without breaking the entire layout?
Community feedback
- @kyusufmPosted 9 months ago
for the marker (number, or disc) you can add li::marker to your css. for example:
li::marker{ color: hsl(332, 51%, 32%); font-weight: bold; }
Marked as helpful2
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