Custom Text Highlight in HTML with ::selection pseudo-element in CSS

preview_player
Показать описание
Use ::selection to highlight text with custom styles. Pseudo-element in CSS.

Codepens:

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:-

Find on other sites:

#programming
Рекомендации по теме
Комментарии
Автор

consider you have a user now he highlights some text then he logout the account then when he again login his account he should see that his highlighted text is still highlighted...
how to achieve this?

simon