I'm having problems understanding display and hover.
I'm trying to hover over a question and have the answer display.
..question {
color: #fff;
background: purple;
width: 300px;
font-weight: bold;
padding-left: 5px;
}
..answer {
color: #000;
background: #fff;
width: 500px;
padding: 0px 20px 0px 20px;
display: none;
}
<div class="question ">This is a question</div>
<div class="answer"> This is the answer. This is the answer. This is the
answer. This is the answer. This is the answer. This is the answer. This
is the answer. This is the answer. This is the answer. This is the
answer. This is the answer. This is the answer. This is the answer. This
is the answer. This is the answer. This is the answer. </div>
..hover:questio n {display .answer}
Totally lost.
Comment