I'm trying to change an element's color on my web page when I hover over a different element that is sitting right next to it. I have tried using the child/sibling selectors "+/~", but to no avail. I'm using alot of Bootstrap 4 syntax in my code, and the <i>
is an icon from FontAwesome. I'm just trying to change the color of <i>
when I hover over the "Support Us" text. Any help would be greatly appreciated!
HTML & CSS:
.Kicker {
color: #05ce78;
}
i.Kicker:hover {
color: black;
}
a {
color: inherit;
text-decoration: inherit;
cursor: inherit;
}
a.hoverText1:hover + .Kicker {
color: black;
text-decoration: inherit;
transition: 0.1s;
}
<div class="row align-items-center mt-4 ml-0">
<h1 class="mr-3 mt-0 text-light" style="font-family: future; cursor: pointer;"><a class="hoverText1" href="http://www.google.com">Support Us:</a></h1>
<i style="cursor: pointer;" class="Kicker fab fa-kickstarter fa-4x"></i>
</div>