How to show a child div
when hovering anchor tag?
I want to show a div
with class botm
when cursor hovers anchor tag. This is the exact scheme I am using so kindly keep tags in the same order:
HTML:
<a> Hover me!</a>
<div class="faraz"> sdjfg
<div class="dikha">Stuff shown on hover</div>
<div class="botm"></div>
</div>
CSS:
div {
display: none;
}
a:hover ~ .faraz > .botm {
display: block;
background-color: RED;
height: 250px;
width: 960px;
}
.botm {
background-color: #0CC;
height: 50px;
width: 100%;
position: fixed;
top: 90px;
}