Make Button Appear to Be Disabled on Click With CSS


/ Published in: CSS
Save to your folder(s)

A better more accessible method to make buttons appear to be disabled upon click via css (with no javascript) Doesn't work in IE but does in other browsers.


Copy this code and paste it in your HTML
  1. button:active, button:focus
  2. {
  3. border: 1px solid #777777;
  4. color: #777777;
  5. }

URL: http://nealgrosskopf.com/files/css/style.css

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.