In this article I will show you how to disable a link using css class in html. I have a css class named link-page and wants to disable the link, so that no action will not take when a user clicked. For that I added the link properties css set pointer-events: none.
<style type="text/css">
.link-page {
pointer-events: none;
color: #7d5b2a;
margin-left: 10px;
font-size: 0.85em;
} </style> <a title="share" data-toggle="collapse" class="link-page" href="page.html" > Link </a>
Output: disable link css
Post your comments / questions
Recent Article
- Fix-Gradient effect turning to gray in after effects
- How to blur an image in python?
- ModuleNotFoundError: No module named 'whois' in Python GoviralHost Without Terminal
- How to Convert Image to Pencil Sketch in Python?
- AttributeError: module 'urllib' has no attribute 'request' - Python
- How to Extract audio from video files using python?
- PermissionError: [Errno 13] Permission denied: 'shampoo_sales.csv' - Python
- [WinError 145] The directory is not empty: 'FolderPath' - Python
Related Article