Copy link to clipboard
Copied
Hi,
For hover, I wrote below.
i {
font-size: 15px;
margin-right: 3px;
color: dimgray;
}
i:hover {
color: white;
}
But the color of the icon doesn't change to white.
Is there any way to make it happen?
Hosun Kang
You will need to get more 'specific'.
Instead of:
i:hover {
color: white;
}
Use:
ul li a:hover i {
color: white;
}
Copy link to clipboard
Copied
Is the element an active link? You need to target the anchor.
Copy link to clipboard
Copied
You will need to get more 'specific'.
Instead of:
i:hover {
color: white;
}
Use:
ul li a:hover i {
color: white;
}
Find more inspiration, events, and resources on the new Adobe Community
Explore Now