I have a div contained within an anchor like so:
<a class="chk" href="href">
<div class="chk-div"></div> Text Here
</a>
I want it so that when you hover over the <a>
, the border-color of the child <div>
changes. I know you can do it simply for the div like so:
.chk-div:hover {
border-color: green;
}
But I want it to change when you hover over the text also