Sometimes with CSS, we want to make an area unclickable.
How to make an area unlickable,in this article we wi’ll look at through CSS.
How can we make an area unclickable with CSS?
For making an area unclickable with CSS, we can set the pointer-events
CSS property to none
.
For instance, if we have a link:
<a href='https://example.com'>
link
</a>
Afterthat we can make it unclickable with:
a {
pointer-events: none;
}
Conclusion
For making an area unclickable through CSS, we can set the pointer-events
CSS property to none
.