How can I make a fade in and out underline when I hover onto my links?
I can't use border-bottom
property, because some of my links are tabs, so if I use border-bottom
, the div gets underline and not the text. I need only the text to be underlined.
Is there a way to do that using CSS, or JS..?
Here is the HTML I would like to add the effect in:
<div class="tabcordion">
<ul class="nav nav-pills nav-stacked col-lg-6 col-md-6 col-sm-6 col-xs-12">
<li class="option1 active underline"><a data-target=".KONTAKT">KONTAKT</a></li>
<li class="option2"><a data-target=".ÜBER_UNS">ÜBER UNS</a></li>
<li class="option3"><a data-target=".BESUCH">BESUCH</a></li>
<li class="option4"><a data-target=".MITGLIED">MITGLIED</a></li>
<li class="option5"><a data-target=".PROJEKTBERATUNG">PROJEKTBERATUNG</a></li>
</ul>
</div>
` or some other element to underline the text. Because if you fade the `` it will do it all. – Tyler Christian Sep 08 '17 at 15:38