-webkit-user-select: none; /* Chrome all / Safari all */
-moz-user-select: none; /* Firefox all */
-ms-user-select: none; /* IE 10+ */
user-select: none; /* Likely future */
#example {
user-select:none;
}
<div
style="-moz-user-select: none;
-webkit-user-select: none;
-ms-user-select:none;
user-select:none;
-o-user-select:none;"
unselectable="on"
onselectstart="return false;"
onmousedown="return false;">
Blabla
</div>
<div
style="-moz-user-select: none; -webkit-user-select: none; -ms-user-select:none; user-select:none;-o-user-select:none;"
unselectable="on"
onselectstart="return false;"
onmousedown="return false;">
Blabla
</div>
.disable-select {
user-select: none; /* supported by Chrome and Opera */
-webkit-user-select: none; /* Safari */
-khtml-user-select: none; /* Konqueror HTML */
-moz-user-select: none; /* Firefox */
-ms-user-select: none; /* Internet Explorer/Edge */
}
Code Example |
---|
Css :: google font roboto |
Css :: cursor pointer events none |
Css :: css button to bottom of div |
Css :: rust get current date |
Css :: backgrond image shopify css |
Css :: how to hover over an individual cell in table css |
Css :: before css font awesome |
Css :: To make the content of the select2 RTL or LTR |
Css :: box shadow |
Css :: 3 column responsive grid css |
Css :: css placeholder text truncate |
Css :: display none transition |
Css :: ionchips scroll x |
Css :: hidden elements blinking on hover |
Css :: word ellipsis css |
Css :: how to outline text in css |
Css :: center div content |
Css :: how to center horizontally in css |
Css :: how to make slideshow not go over navigation bar |
Css :: how to rotate picture to the right in css |
Css :: cut word css |
Css :: padding top |
Css :: css grow |
Css :: inter |
Css :: how to move text down in css |
Css :: bootstrap file upload |
Css :: michigan score |
Css :: how to make fonts respnsive |
Css :: image rotate css |
Css :: css module multiple classes |