I want everything inside the #parent div to change width when I hover on an image, but the image my cursor is on not to change.
In other words, is there a CSS Parent selector?
this is my code right now that doesn't work:
img {
width: 340px
}
body {
background-color: black;
}
img:hover~#parent {
width: 34px
}
<body>
<div id="parent">
<img src="https://www.tazzadesign.com/wp-content/uploads/sites/65/2013/11/dummy-image-square.jpg">
<img src="https://www.tazzadesign.com/wp-content/uploads/sites/65/2013/11/dummy-image-square.jpg">
<img src="https://www.tazzadesign.com/wp-content/uploads/sites/65/2013/11/dummy-image-square.jpg">
</div>
</body>