Search code examples
cssdisabled-input

button:not(:disabled) { cursor:pointer; } what does it mean?


Hye,

button:not(:disabled) { 
cursor:pointer;
} 

what does it mean? The focus is possible or not? Thanks


Solution

  • This means that if your cursor is over any <button> tags that aren't disabled it will appear as a pointer.

    button is the HTML element that the styling is being applied to. :not() means that the element can't have the attributes followed in the parameter. cursor: pointer turns the cursor to a pointer.