beerForo Well-known member Sep 3, 2021 #1 I did this on one style, and on the other trying to find it. When I highlight text I want to change the color. Where is that?
I did this on one style, and on the other trying to find it. When I highlight text I want to change the color. Where is that?
Paul B XenForo moderator Staff member Sep 3, 2021 #2 Less: ::selection { color: black !important; background: orange !important; } Upvote 2 Downvote
Chromaniac Well-known member Sep 3, 2021 #3 There is also this another element named ::target-text which is used by Chrome's scroll to text selection! ::target-text - CSS: Cascading Style Sheets | MDN The ::target-text CSS pseudo-element represents the text that has been scrolled to if the browser supports text fragments. It allows authors to choose how to highlight that section of text. developer.mozilla.org Upvote 0 Downvote
There is also this another element named ::target-text which is used by Chrome's scroll to text selection! ::target-text - CSS: Cascading Style Sheets | MDN The ::target-text CSS pseudo-element represents the text that has been scrolled to if the browser supports text fragments. It allows authors to choose how to highlight that section of text. developer.mozilla.org