#menu{
opacity: 0;
margin: 100px auto;
background-color: #edf4da;
border-style: solid;
border-width: 1px;
border-color: #c4efb6;
width: 600px;
height: 300px;
-webkit-border-radius: 12px;
-moz-border-radius: 12px;
border-radius: 12px;
}
.shadow{
box-shadow: 0px 0px 5px #888888;
}
#startButton{
opacity: 0.5;
margin: 20px auto;
background-color: #54fb8d;
border-style: solid;
border-width: 1px;
border-color: #c4efb6;
width: 90px;
height: 40px;
-webkit-border-radius: 7x;
-moz-border-radius: 7px;
border-radius: 7px;
}
#startButton:hover #menu{ /*this is where I am having a problem*/
opacity: 1;
-webkit-transition: opacity .5s ease-in-out;
-moz-transition: opacity .5s ease-in-out;
transition: opacity .5s ease-in-out;
}
////////HTML////
<!DOCTYPE html>
<html>
<head>
<title>Ubiquity</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div id="menuwbutton">
<div id="menu">
</div>
<div id="startButton">
</div>
</div>
</body>
</html>
I want the opacity of #menu to change when I hover over #startButton. I've searched, but I haven't found any information on this topic. If this question was already asked, can you give me a link to it? Thanks!