Code is as follows:
<h1 class="slide-title">
<span class="slider-category">
<a href="/test/test.html"> Blocking irritating text</a>
</span>
Hong Kong Trip Nov 2015 – Day 3 Itinerary
</h1>
Using h1.slide-title:hover
will affect the "Blocking irritating text" within the span element as well.
I ONLY want to underline on hover the following text "Hong Kong Trip Nov 2015 – Day 3 Itinerary", I DO NOT want the "Blocking irritating text" to be underlined when I hover over it.
Is this possible with CSS or jQuery?
Edit: question is not duplicate as I do not want to edit the HTML. Also as a side note, I would like the <span>
element to underline on hover separately as well.