i'm trying to make a simple website contain navbar and image i know how to make hover over my class nav to effect my navbar
but i tried to make it different ! hover over picture .. will effect my navbar but picture won't be effected !
i tried to add more div classes . changed my code many times with many changes i saw on youtube , etc .. nothing became successful and i'm damn lost
test.image:hover~#list {
background-color: yellow;
font-size: 40px;
}
<html>
<body>
<h1> test1 </h1>
<div class="test">
<div class="list">
<ul>
<li>test2</li>
</ul>
</div>
<div class="image">
<img src="test.jpg">
</div>
</div>
</body>
</html>
well no effect at all ! and i tried many times with different codes .. doing ids , classes , something about parent and child .. nothing .. also i can't understand parent and child for real xD