Answers for "div disable adjust to text"

3

disable text selection html

<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>
Posted by: Guest on August-16-2020
2

css disabled div

.disabledbutton {
    pointer-events: none;
    opacity: 0.4;
}
Posted by: Guest on March-18-2020

Browse Popular Code Answers by Language