My @media query was passing, but after I changed some class elements, now it won’t pass. I cannot figure out why. Tried moving it to the bottom, but it still doesn’t work.
@media (any-hover: hover) {
a:hover {
background-color: pink;
}
}
nav {
position: fixed;
min-width: 200px;
top: 0px;
left: 0px;
width: 250px;
height: 100%;
border-right: solid;
border-color: #111111;
background-color: #f5f3f3
}
html {
display: block;
}
html, body {
min-width: 290px;
color: #4d4e53;
background-color: #ffffff;
font-family: Times, Arial, Vernanda;
line-height: 1.5;
}
main {
display: block;
}
#main-doc {
position: absolute;
margin-left: 300px;
padding: 10px;
margin-bottom: 100px;
}
header {
font-weight: bold;
}
#navbar li {
display: block;
padding: 1rem;
color: #4d4e53;
border-top: 1px solid;
list-style: none;
position: relative;
width: 100%;
font-size: 18px;
text-align: left;
}
nav>header {
position: relative;
border-bottom: solid 2px #111111
}
nav>ul {
postion: relative;
margin-left: 0;
display: block;
}
#navbar ul {
height: 88%;
padding: 0;
overflow-y: auto;
overflow-x: hidden;
}
header {
font-size: 24px;
}
p {
font-size: 14px;
}
code {
display: block;
background-color: #91F4F4;
}
.code-type {
font-weight: bold;
}
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36
Challenge: Technical Documentation Page - Build a Technical Documentation Page
Link to the challenge: