I need help with a webpage that displays a list of partners organized by categories.
When clicking on sidebar categories, the link remains underlined. However, if you click anywhere else on the page, the link becomes inactive.
CSS:
button:hover {
text-decoration: underline;
color:#000;
}
button:focus {
text-decoration: underline;
color:#000;
}
button:active {
text-decoration: underline;
color:#000;
}
button:visited {
text-decoration: underline;
color:#000;
}
HTML:
<button id="showall" style="border:none;">All Deals</button>
<button id="show" style="border:none;">Business</button>
<button id="show2" style="border:none;">Design</button>
<button id="show3" style="border:none;">Development</button>
<button id="show4" style="border:none;">Marketing</button>
Is there a way for the link to remain underlined unless other category buttons are clicked?
Appreciate any assistance!