Wednesday, September 19, 2018

css - How to disable text selection highlighting

For anchors that act like buttons (for example, Questions, Tags, Users, etc. at the top of the Stack Overflow page) or tabs, is there a CSS standard way to disable the highlighting effect if the user accidentally selects the text?



I realize this could be done with JavaScript, and a little googling yielded the Mozilla-only -moz-user-select option.



Is there a standard-compliant way to accomplish this with CSS, and if not, what is the "best practice" approach?

No comments:

Post a Comment

plot explanation - Why did Peaches' mom hang on the tree? - Movies & TV

In the middle of the movie Ice Age: Continental Drift Peaches' mom asked Peaches to go to sleep. Then, she hung on the tree. This parti...