add disabled property in a div code example Example: css disabled div .disabledbutton { pointer-events: none; opacity: 0.4; }