Answer the question
In order to leave comments, you need to log in
A block span does not take on the effects of a:hover. How to fix?
There is the following code:
nav a {
display:block;
text-decoration: none;
color: rgba(255, 255, 255, 0.6);
}
nav a:hover {
color:#fff;
}
nav a span {
width: 5px;
height: 2px;
background-color: rgba(255, 255, 255, 0.6);
position: absolute;
right:0;
bottom: 30px;
transform: rotate(45deg);
}
Answer the question
In order to leave comments, you need to log in
In general, your span is not a block one, but a block one, you have a link tag and, accordingly, everything that you wrote for the span will not work ..
width: 5px; не сработает
height: 2px; не сработает
background-color: rgba(255, 255, 255, 0.6); сработает
position: absolute; сработает
right:0; сработает
bottom: 30px; сработает
transform: rotate(45deg); не сработает
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question