Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
HAlex27817yThe css used for the <i> element is making this hard, let me think, if I have an idea I'll write it.
Let's make it clear tho, the hover event is for the i icon, not for the a content, right? -
HAlex27817yMaybe this will work
(a element).getElementsByTagName("i") -> foreach (el) {
el.onhover = function () {};
} -
monr0e12527y@Alice I'm terrible with HTML and CSS, but I can usually get things to sort of work. I'm nitpicking really, but it's bugging me.
Here's the relevant snippets from my project https://pastebin.com/QBctkCMf -
monr0e12527yI'm going to stop and come back to this, I've been trying to fix it for a good hour. I'll post back when I figure out why it's broken
-
HAlex27817yThere you go -> https://codepen.io/anon/pen/baYYbL
Our examples just WORK, but you probably have something that is stopping them.
Related Rants
Assuming I have the following:
<li>
<a href= "address" class="hovermod">
Text here
<i class="fa fa-sign-out-alt" aria-hidden="true"></I>
</a>
</i>
How can I apply the hover event to the i element when the user hovers over the a element? The only success I have had thus far is when the user hovers specifically over the i element.
question
hover
css
html