Quantcast
Channel: Altschuler
Viewing all articles
Browse latest Browse all 60

How to Disable a Link with CSS

$
0
0

To disable a link using CSS, use the following code:

.disabled-link {
   pointer-events: none;
   cursor: default;
}

The pointer-events: none; removes the link functionality. The cursor: default; changes the cursor from the pointer (little hand denoting a link) to the default arrow (denoting no link) when hovering over the link.


Viewing all articles
Browse latest Browse all 60

Latest Images

Trending Articles



Latest Images