I am currently working on customizing tabs. I want to underline the title of the active tab, but for some reason I am having trouble achieving this with CSS. It seems like I might need a CSS syntax that I am not familiar with.
As a solution, I am considering customizing my HTML code with CSS properties. Is there a way to assign the onmouseover
, visited
, hover
, and active
attributes to my <div>
in HTML?
This is the HTML code I have:
<div class="container">
<div class="tabcordion">
<ul class="nav nav-pills nav-stacked col-lg-6 col-md-6 col-sm-6 col-xs-12">
<li class="active"><a data-target=".KONTAKT">KONTAKT</a></li>
<li><a data-target=".ÜBER_UNS">ÜBER UNS</a></li>
</ul>
<div class="tab-content col-lg-6 col-md-6 col-sm-6 col-xs-12">
<div class="KONTAKT in active">My content #1.</div>
<div class="ÜBER_UNS">My content #2.</div>
</div>
</div>
</div>