@VandorpKe
Posted
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.
@BegShoo
Posted
@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!