how to make div disabled using class in php code example Example: css disabled div .disabledbutton { pointer-events: none; opacity: 0.4; }