I'm trying to make a image change on hover with another image and I can't seem to make it responsive. I've tried putting the height into auto but it doesn't fix it. Thanks!
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style type="text/css">
.container {
position: relative;
width: auto;
}
.responsive {
background-repeat: no-repeat;
width: 100% ;
height: auto;
display: inline-block ;
background-image: url('http://laurasbdar.com/wp-content/uploads/2019/04/articulos2.jpg');
}
.responsive:hover {
background-image: url('http://laurasbdar.com/wp-content/uploads/2019/04/articulos1.jpg');
}
</style>
</head>
<body>
<a href="http://www.corelangs.com" class="responsive" title="Corelangs link"></a>
</body>
</html>