How to prevent the click event using CSS? December 6, 2022 by Tarik You can try the css class: .noClick { pointer-events: none; }