How to prevent the click event using CSS?

HtmlCss

Html Problem Overview


How to prevent the click event using CSS ?

I have created the form page , then i need to prevent the click event using only CSS?
I have tried this css property, but not worked.

<div>Content</div>

div {
  display: none;
}

Html Solutions


Solution 1 - Html

You can try the css class:

.noClick {
   pointer-events: none;
}

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionM KView Question on Stackoverflow
Solution 1 - HtmlkevinSpaceyIsKeyserSözeView Answer on Stackoverflow