@cosmoart
Posted
Hi Sai!, Congratulations on completing this challenge, it looks great!, .avatar:hover .avatar::before { opacity: 1;}
Translates to: When hovered in .avatar you will give an opacity of 1 to the ::before child from .avatar named .avatar.
It would be something like this:
<div class="avatar">
<div class="avatar"></div>
</div>
You can see it more clearly by hovering over the selector from a code editor like Visual Studio Code.
Another way to display the SVG is using the <img> tag, something like this:
<img src="image.svg" alt="...">
If you want to know more about the differences is to use each one you can see this question on stackoverflow
I hope you find it useful, Happy coding! 👋
Marked as helpful
@A-C-Sai
Posted
@cosmoart oh I was using descendant selector "/. Thank you (: