Quantcast
Channel: selecting text – CSS-Tricks
Browsing latest articles
Browse All 3 View Live

Image may be NSFW.
Clik here to view.

Force Selection of Text Block

Have you ever seen (or put yourself) some text into a <textarea> or <input>, not because it was part of a form, but because it made the whole block of text easier to select. Inputs like...

View Article



Gotta Select’em All

I suspect it is not highly known that CSS can control how text is selected. You can do user-select: none; to prevent some text from being selected. That’s probably not terribly good UX in general, but...

View Article

Image may be NSFW.
Clik here to view.

CSS Custom Highlight API: The Future of Highlighting Text Ranges on the Web

Styling ranges of text in software is a very useful thing to be able to do. Thankfully, we have the CSS Custom Highlight API to look forward to because it represents the future of styling text ranges...

View Article
Browsing latest articles
Browse All 3 View Live




Latest Images