© Scott Dawson, http://scottpdawson.com (607) 279-7173, @scottpdawson

Simple CSS for Disabled Buttons

I frequently observe discrete interface problems that, in isolation, are minor, but in aggregate, equal BIG problems. “Death by a thousand paper cuts,” you might say. I came across an update in CSS3 that gives developers more control over the cursor, which can be another tool to help communicate state or affordance to the user.

Imagine a page that contains a button that is enabled only after the user takes a specific action, like filling out required fields on a form. In this case, you can use  cursor: not-allowed on the disabled button to help communicate its non-clickable state. Of course, you’ll still need to ignore the click until it is active, but when the user hovers over it, they’ll have a clear indication that it’s not (yet) interactive.

It's the little things that matter. Like proper disabled states for interactive elements. Click To Tweet

Hover over the disabled button in the example below. If your browser supports CSS3, you’ll see a nice indication on the cursor:

Want more? Subscribe to my TinyLetter at tinyletter.com/scottpdawson


  1. It is looking , it is disabled but “on-click” event works on the button “But Not Me”. I want to disable all the js events as well.

Leave a Comment

Your email address will not be published. Required fields are marked *