Answer the question
In order to leave comments, you need to log in
How to make .content-head a:hover {display:block} what's wrong?
I have code
<div class='content-head'>
<a id='phones' href='aboutthissite.html'>О сайте</a>
<div class='content'>
<a>1</a>
<a>2</a>
<a>3</a>
</div>
</div>
.content {
display: none;
position: absolute;
background-color: #f1f1f1;
min-width: 160px;
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
z-index: 1;
}
.content-head:hover .content {display: block;}
#phones {
/*border-left: 0.1px solid #6E61E9;*/
margin-left: 10px;
text-decoration: none;
color: #f6f2f1;
}
#phones:hover {
color: #79D4E9;
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question