Created
February 18, 2013 20:45
-
-
Save tutweb/4980559 to your computer and use it in GitHub Desktop.
Disable Text Selection With CSS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Disable Text Selection With CSS</title> | |
<style> | |
.website-content{ | |
-webkit-user-select: none; | |
-khtml-user-select: none; | |
-moz-user-select: none; | |
-ms-user-select: none; | |
user-select: none; | |
} | |
} | |
</style> | |
</head> | |
<body> | |
<div class="website-content">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Illo praesentium expedita suscipit beatae placeat obcaecati labore hic in reiciendis ipsum laborum assumenda quos omnis ab voluptatibus aliquam ex vitae nulla molestias ratione.</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment