I've come across a challenge that is new to me in my journey as a web designer. As a beginner, I recently incorporated the CSS hover feature on a div element within my webpage. Upon hovering over this div, an additional image is revealed; however, when moving the cursor away from the div, the new image disappears, and I would like it to remain visible.
Below is an illustration of the code I am currently using:
#about {
height: 25px;
width: 84px;
background-image: url('about.png');
position: absolute;
top: 200px;
left: 0px;
}
#onabout {
height: 200px;
width: 940px;
position: absolute;
top: 60px;
left: 0px;
color: #fff;
font-family: 'Lato', sans-serif;
font-size: 15px;
font-weight: 300;
display: none;
}
#about:hover #onabout {
display: block;
}
Is there a way to resolve this issue solely using CSS? Up until now, I have avoided using JavaScript and feel less confident with it.
In any case, I am open to all suggestions for resolving this matter. Thank you in advance!