I have a section in HTML that is divided into two parts. In one section, I am listing some points and in the other, I am displaying their corresponding sentence on hover. Here is how I implemented it:
.showme {
display: none;
}
.single-fun-fact:hover~.showme {
display: block;
}
<section class="company-groth section overlay-with-img gray-bg">
<img src="UK STUDY-03.jpg" alt="" class="bg-img">
<div class="company-groth">
<div class="container">
<div class="row">
<div class="col-md-6">
<div class="fun-fact">
<div style="margin-top: -25%; margin-left: -5%;" class="section-head text-center">
<h2>Highlights Of Study In UK</h2>
<div class="section-divider">
<div class="left wow fadeInLeft" data-wow-duration="1s" data-wow-delay="0.2s"></div>
<span></span>
<div class="right wow fadeInRight" data-wow-duration="1s" data-wow-delay="0.2s"></div>
</div>
<p></p>
</div>
<div id="hulk" class="single-fun-fact">
<p class="counte">NO</p>
<h2 style="margin-left: 15%;">IELTS REQUIRED</h2>
</div>
<!-- .single-fun-fact -->
...
</div>
</div>
<div class="col-md-6">
<div class="company-groth-graph-wrap">
<div class="showme">
<h2>If student has 60-65% above in Intermediate English.</h2>
</div>
</div>
<!-- .company-groth-graph-wrap -->
</div>
<!-- .col -->
</div>
</div>
</div>
</section>
However, when hovering over the div element, the hidden div is not being displayed. Can someone please help me identify what might be wrong with my code? Thank you in advance.