We Recommend

CSS: The Definitive Guide CSS: The Definitive Guide
Provides you with a comprehensive guide to CSS implementation, along with a thorough review of all aspects of CSS 2.1. Updated to cover Internet Explorer 7, Microsoft's vastly improved browser, this new edition includes content on positioning, text wrapping (nowrap), lists and generated content, table layout, user interface, paged media, and more.


Posted By

neal_grosskopf on 12/07/07


Tagged

css


Versions (?)


Who likes this?

5 people have marked this snippet as a favorite

copyleft
vali29
sbbath
stoker
neal_grosskopf


Make Button Appear to Be Disabled on Click With CSS


Published in: CSS 


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

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.

  1. button:active, button:focus
  2. {
  3. border: 1px solid #777777;
  4. color: #777777;
  5. }

Report this snippet 

You need to login to post a comment.