Skip to content

Commit

Permalink
Don't allow selection
Browse files Browse the repository at this point in the history
  • Loading branch information
nayakrujul committed Feb 18, 2024
1 parent b9ddbc9 commit e293ac2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
12 changes: 11 additions & 1 deletion homepage.css
Original file line number Diff line number Diff line change
Expand Up @@ -168,4 +168,14 @@ a:hover {
50% {
transform: translateY(-8px);
}
}
}

.noselect {
-webkit-touch-callout: none; /* iOS Safari */
-webkit-user-select: none; /* Safari */
-khtml-user-select: none; /* Konqueror HTML */
-moz-user-select: none; /* Old versions of Firefox */
-ms-user-select: none; /* Internet Explorer/Edge */
user-select: none; /* Non-prefixed version, currently
supported by Chrome, Edge, Opera and Firefox */
}
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<!DOCTYPE html>

<html>
<html class="noselect">
<head>
<link rel="stylesheet" href="./homepage.css">

Expand Down

0 comments on commit e293ac2

Please sign in to comment.