So I followed the other topic's solution but the Description I set still doesn't want to appear in the text box.
I already tried this: How To Change Text Box Content On Hover I double checked every class name every bracket in the css I just but still nothing. What could be the problem?
Relevant part of the code:
a {
text-decoration: none;
}
a:link {
color: #3ea500;
}
.a-1:hover~.element-1 {
display: block;
}
.a-2:hover~.element-2 {
display: block;
}
.a-3:hover~.element-3 {
display: block;
}
a:hover {
color: #cc7400;
font-weight: 700;
}
.desc {
background-color: green;
width: 33%;
position: fixed;
border-radius: 5px;
left: 66%;
top: 180px;
}
<body>
<div class="desc">
Description:
<div class="element-1">hello one</div>
<div class="element-2">hello two</div>
<div class="element-3">hello three</div>
</div>
<div>
<ul>
<li>
<a class="a-1" href="#" target="_blank">Deepdream generator.</a>
</li>
<li>
<a class="a-2" href="#" target="_blank">Picture Breeder</a>
</li>
<li>
<a class="a-3" href="#" target="_blank">AI guesses what you draw</a>
</li>
</ul>
</div>
</body>
Expected: The text appears in the description Box.
Results: Nothing happens.
Maybe the browser is bad?
` (not the ``) and just are not at the same nesting level as their 'selectors'. It will not work this way...
– Rene van der Lende Jun 06 '19 at 13:27