Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Disable Copy All Text
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Disable All Text</title>
<style>
body{
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.content{
width: 680px;
margin: 20px auto;
background: #fff000;
padding: 20px;
}
.entry{
background:#fff;
padding:20px;
margin:20px 0;
}
p{
background:#fff;
padding:20px;
}
small{
display: block;
}
</style>
</head>
<body>
<div class="content">
<h2>Disable Selection All <small><a href="http://www.tutorial-webdesign.com/css-disable-select-text">http://www.tutorial-webdesign.com</a></small></h2>
<div class="entry">
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Non vero ipsum minima minus impedit voluptatum blanditiis laboriosam deserunt repellat fugiat quaerat quibusdam optio est sed odio eum ad laudantium accusantium.
</div>
<div class="entry">
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Non vero ipsum minima minus impedit voluptatum blanditiis laboriosam deserunt repellat fugiat quaerat quibusdam optio est sed odio eum ad laudantium accusantium.
</div>
<div class="entry">
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Non vero ipsum minima minus impedit voluptatum blanditiis laboriosam deserunt repellat fugiat quaerat quibusdam optio est sed odio eum ad laudantium accusantium.
</div>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.