My CSS knowledge is lacking and so I'm looking for some help.
I have a basic anchor tag outside of a number of divs
e.g.
The anchor is wrapped around the divs via a combination of positioning ala https://bdwm.be/html5-alternative-nested-anchor-tags/ because there is a need for a block level anchor link (e.g. a card) but the content additionally contains anchors in the contents of the div layers.
This all works in terms of the layout and links but I want to be able to underline the "title" class in the div layer
when the anchor tag has onhover, basically along the lines of
but can't work out the css or if this is even possible with css alone since it is not a child of the anchor so this wont work as is.
Any help would be very appreciated.
I have a basic anchor tag outside of a number of divs
e.g.
Code:
<a class="link-wrapper"></a>
<div>
<div>
<span class="title">some title</span>
</div>
</div>
The anchor is wrapped around the divs via a combination of positioning ala https://bdwm.be/html5-alternative-nested-anchor-tags/ because there is a need for a block level anchor link (e.g. a card) but the content additionally contains anchors in the contents of the div layers.
This all works in terms of the layout and links but I want to be able to underline the "title" class in the div layer
when the anchor tag has onhover, basically along the lines of
Code:
.link-wrapper:hover .title {
text-decoration: underline;
}
but can't work out the css or if this is even possible with css alone since it is not a child of the anchor so this wont work as is.
Any help would be very appreciated.