Styling Disabled Buttons in CSS


Visually indicate a button is disabled by changing its appearance.

Source Code

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments