I am currently experimenting with modifying the styles of another element in CSS, but I'm unsure if I'm executing it correctly. Any guidance or suggestions would be greatly appreciated.
ul.drop-menu {
opacity: 0.1;
}
nav > ul > li:hover ~ ul.drop-menu {
opacity: 1;
}
<nav>
<ul>
<li>Example
<ul class="drop-menu">
<li class="1">Item 1</li>
<li class="2">Item 2</li>
<li class="3">Item 3</li>
<li class="4">Item 4</li>
<li class="5">Item 5</li>
<li class="6">Item 6</li>
<li class="7">Item 7</li>
</ul>
</li>
</ul>
</nav>