Use ::selection to highlight text with custom styles. Pseudo-element in CSS.
Do not click this 🥴: https://bit.ly/352wEsG
Codepens:
https://codepen.io/katydecorah/full/5ee2c6a3e825753802755bd08fcd5c5f
https://codepen.io/shadeed/full/5074964e902cd83d96e5ce7ba9ee1423
Check MDN article: https://developer.mozilla.org/en-US/docs/Web/CSS/::selection
Timestamp:
00:00 - Demo
03-10 - Let's code
05:18 - Global selection styling
07:00 - Specific element selection
08:15 - Disable text selection
Worth checking:-
Best text editors 2021: https://youtu.be/_9QD3CXVVFc
Host react app on 000webhost: https://youtu.be/5M6Q_FKqOSQ
Keys in DBMS: https://youtu.be/V793yFQpTFM
Make a website in 10minutes: https://youtu.be/WbUca-Lfwfc
Hosting websites for free(playlist): https://www.youtube.com/playlist?list=PL9RVyg6xl__g97QlXHEMukWwI6qbSA4ZG
Find on other sites:
Github: https://www.github.com/aashishpanthi
Medium: https://medium.com/aashishpanthi
#programming