@Code-Beaker
Posted
Hi there, congratulations on completing this project. You've done a great work with this one! 🎉
The active states is activated on hovering on the link. You can change the properties of the link using a few lines of CSS.
- the body needs a
min-height: 100vh
instead ofheight: 100vh
. - I recommend changing the class "link" to the
a
tag fromli
to make it easier to style them.
This is the current markup
<li class="link"><a href="#">Github</a></li>
This is the new markup
<li><a class="social-link" href="#">GitHub</a></li>
Then let's create the active state.
.link:hover {
background-color: var(--green);
color: var(--dark-grey);
}
This should do the work. You need to be aware of the different class names you assign to different elements. In this code, the a
must be the link. The li
is not a link as you may know.
Hope this helps you! 😊