I want to hover the li but it is not working, I did this before and it worked but I don't know why it is not working now I set background color for li, I want to when it is hover it change and another question, I set opacity for footer but it affected li background color too!
body {
background-image: url(background.jpg);
background-repeat: no-repeat;
}
footer {
width: 1350px;
height: 200px;
background-color: dimgray;
border-radius: 10px;
opacity: 0.7;
position: absolute;
}
#li1 {
display: inline-block;
list-style-type: none;
margin: 2px;
padding: 20px;
background-color: aqua;
width: 100px;
font-family: Calibri;
font-weight: 700;
}
#ul1 {
margin-left: 50px;
margin-top: 60px;
position: relative;
}
a {
text-decoration: none;
color: black;
display: block;
font-size: 20px;
text-align: center;
}
li:hover {
background-color: chartreuse;
}
<footer>
<ul id="ul1">
<li id="li1"><a href="##">Home</a></li>
<li id="li1"><a href="##">Categories</a></li>
<li id="li1"><a href="##">languages</a></li>
<li id="li1"><a href="##">Contries</a></li>
<li id="li1"><a href="##">Cities</a></li>
<li id="li1"><a href="##">Planets</a></li>
<li id="li1"><a href="##">Seas</a></li>
<li id="li1"><a href="##">Deserts</a></li>
</ul>
</footer>