I have the need to disable a link via css, can this be done if the link is visible and holds a valid 'href' attribute value?
html:
<a class="theLink" href="https://ebay.com">link</a>
css:
.theLink{...?}
I have the need to disable a link via css, can this be done if the link is visible and holds a valid 'href' attribute value?
html:
<a class="theLink" href="https://ebay.com">link</a>
css:
.theLink{...?}
 
    
    Yes you can disable it!
html:
<a class="theLinkDisabled" href="https://google.com">link</a>
<br>
<a class="theLinkActive" href="https://google.com">link</a>
css:
.theLinkDisabled{
    pointer-events: none;
    cursor:default;
}
.theLinkActive{
    pointer-events: auto;
    cursor:pointer;
}
