When I hover over my parent div containing 3 child divs, only parts of the child divs change color. How do I make all the child divs change color when part mouse is hovered over them? Any help would be appreciated. Thanks!
This is the code I have attempted:
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Untitled Document</title>
<style>
.container {
display: inline-block;
cursor: pointer;
width: 35px;
}
.bar1, .bar2, .bar3 {
width: 35px;
height: 5px;
background-color: #333;
margin: 6px 0;
transition: 0.4s;
}
.bar1:hover, .bar2:hover, .bar3:hover {
width: 35px;
height: 5px;
background-color: #e5e5e5;
margin: 6px 0;
transition: 0.4s;
}
</style>
</head>
<body>
<div style=" text-align: right; padding-right: 30px;">
<div class="container">
<div class="bar1"></div>
<div class="bar2"></div>
<div class="bar3"></div>
</div>
</body>
</html>