Answers for "how to disable li tag in html"

0

how to disable li tag in html

.disabled {
    pointer-events:none; //This makes it not clickable
    opacity:0.6;         //This grays it out to look disabled
}

html
<li class="disabled">disable</li>
Posted by: Guest on April-28-2022

Browse Popular Code Answers by Language