• python
  • javascript
  • reactjs
  • sql
  • c#
  • java
Facebook Twitter Instagram
Devs Fixed
  • python
  • javascript
  • reactjs
  • sql
  • c#
  • java
Devs Fixed
Home ยป Resolved: disable selection of text except for one class

Resolved: disable selection of text except for one class

0
By Isaac Tonny on 17/06/2022 Issue
Share
Facebook Twitter LinkedIn

Question:

I have a website on which I have made all text non selectable except for input and textareas using the following line of CSS:
I’d like to add a class so I can add certain texts to also be selectable. I thought adding “.selectable” to the selector would be enough, but somehow this doesn’t work. Should it?

Answer:

You need to create a separate rule for .selectable class to make it select text.


If you have better answer, please add a comment about this, thank you!

css
Share. Facebook Twitter LinkedIn

Related Posts

Resolved: Openlayers: Update clusters depending on filter (geometryFunction)

24/03/2023

Resolved: Getting ‘502 Bad Gateway’ while deploying Springboot app in EKS

24/03/2023

Resolved: Why is NGINX’s $request_uri empty?

24/03/2023

Leave A Reply

© 2023 DEVSFIX.COM

Type above and press Enter to search. Press Esc to cancel.