[CSS] Disabled Element

*:disabled, *[disabled] {
  opacity: 0.5;
  color: #666666;
  cursor: not-allowed;
  pointer-events: none;
}

Example:

<button disabled>Disabled Button</button>

Post a Comment

0 Comments