I was wondering how to show an image when you're hovering over a <span>
.
Here's my code:
<html>
<head>
<style>
.img { display: none; }
.show:hover + .img { display: block; }
<style>
</head>
<body>
<h1>Hello there how are you <span class="show">guys</span></h1>
<img src="/image.jpg" class="img">
</body>
</html>
Is it possible to do so with just css?