Unselectable HTML Button Text

Image by PublicDomainPictures from Pixabay


We want the text in our HTML button to be unselectable.


Put the following in the Button CSS Class:

user-select: none;




Founder of Firefly Semantics Corporation

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Setup Networked Time Machine Drive

Replica Volume in glusterfs

Insights From Week Four As A Software Development Intern

Updates from the InvArch Weekly Wednesday: March 9th, 2022

Revuto’s Weekly Progress Update #4

Learnings from monolithic to microservice migration

INTRO TO C++: Controlling the Flow of a Program — Using For Loop, While Loops, Do-While and Switch…

[Solved] Nox Has to Reboot for reasons unknown — Error 1006 in Nox Player

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Ole Ersoy

Ole Ersoy

Founder of Firefly Semantics Corporation

More from Medium

Customizing the Typography Theme for a Packaged Angular Component

The perfect blockquote, Part III: Conclusion

Using Angular services in Storybook

Get IntelliSense for your SVG icons library using Typescript