Hey there, I've been struggling to create a pop-up image effect using CSS and CSS3. Unfortunately, I'm facing some issues with pseudo-classes like (visited, actived, and focus) as they don't seem to work for me. The only one that works is hover. Can anyone offer some guidance on how to solve this problem?
When I say pop-up image effect, I'm referring to the feature where clicking on an image on Facebook causes it to pop up with its actual size while darkening the background slightly. Any insights into why the pseudo-classes are not working for me would be greatly appreciated.
Thanks!
<style type="text/css">
.pop{
border: 1px solid #000 ;
border-radius: 15%;
width: 200px;
height: 200px;
}
.pop:active{
width:500px ;
height:500px;
position:relative;
right: -65px;
top: 200px ;
background-color:#000;
}
<img class='pop' src="C:/Users/mohammad ghazi/Desktop/Xhtml folder/friends.jpg" alt="" />