I seem to have forgotten my CSS skills, but I am facing an issue.
Here is the code snippet:
<div class="footer_container">
<div class="website_logo_to_footerexpand"></div>
<div class="info_cont">
<div class="info_slide_arrow"></div><!--arrow-->
<div class="info_slide">
<div class="level1">© Datacardz.Inc <?php echo date('Y'); ?></div>
<div class="level2">
<a href="" id="about" class="href_link">About</a>
<a href="" id="terms" class="href_link">Terms</a>
<a href="" id="corporate" class="href_link">Company</a>
<a href="" id="blog" class="href_link">Blog</a>
</div>
</div>
</div>
The issue I am facing is that when I use the CSS code:
.website_logo_to_footerexpand:hover ~ .info_cont
, it displays the div but disappears as soon as I move the mouse to the info_cont div.
Additionally, the code
.website_logo_to_footer_expand:hover > .info_cont
does not work at all.
Here is my CSS code:
.website_logo_to_footerexpand{
float:left;
cursor:pointer;
background-image:url(data_cardz_imagesprites.png);
background-position:0 0;
width:60px;
height:60px;
}
.info_cont{
float:left;
height:60px;
opacity:0;
visibility:hidden;
}
.website_logo_to_footerexpand:hover ~ .info_cont{
visibility:visible;
opacity:1;
}