Changing style of the bullet/number marker of list item is made very easy now in CSS.
How?
Using ::marker pseudo-element ✨
Learn all about ::marker in this graphical thread covering 7 use cases of it.
🧵 ↓
#CSS3 #webdev #DEVCommunity #100DaysOfCode
How?
Using ::marker pseudo-element ✨
Learn all about ::marker in this graphical thread covering 7 use cases of it.
🧵 ↓
#CSS3 #webdev #DEVCommunity #100DaysOfCode
3. Add color transition to marker on hover
5. Animate marker of list-items
Bonus:
Use of ::marker is not limited to just <ul> and <ol> lists. We can use it with any element by setting display: list-item to it.
Use of ::marker is not limited to just <ul> and <ol> lists. We can use it with any element by setting display: list-item to it.
You can play with the sample code mentioned in the above use cases at this playground: codewithshripal.com
Thanks for checking this out.
Follow @codewithshripal for more such threads on web development.
Retweet and like the first tweet of the thread to help spread the word.
Follow @codewithshripal for more such threads on web development.
Retweet and like the first tweet of the thread to help spread the word.
Loading suggestions...