Categories CSS How to disable all div content with CSS? Post author By John Au-Yeung Post date September 3, 2022 No Comments on How to disable all div content with CSS? Spread the love To disable all div content with CSS, we set the pointer-events property. For instance, we write #my-div { pointer-events: none; } to select the div with ID my-div and disable all mouse events on it by setting pointer-events to none. Related Posts How to disable clicking inside div with CSS?To disable clicking inside div with CSS, we set the pointer-events style to none. For… How to disable text select with CSS?Sometimes, we want to disable text select with CSS. In this article, we'll look at… How to disable div element and everything inside with CSS?To disable div element and everything inside with CSS, we set the pointer-events CSS property… By John Au-Yeung Web developer specializing in React, Vue, and front end development. View Archive → ← How to find the closest ancestor element that has a specific class with JavaScript? → How to display a confirmation dialog when clicking an anchor link with JavaScript? Leave a Reply Cancel replyYour email address will not be published. Required fields are marked *Comment * Name * Email * Website Save my name, email, and website in this browser for the next time I comment. Current ye@r * Leave this field empty