Tell us what’s happening:
nav ul li:hover {
background-color: #dfdfe2; /* Background color on hover /
text-decoration: none;
color: inherit; / Text color on hover */
padding: 0.5rem 1rem;
display: block;
cursor: pointer;
}
Your code so far
<!-- file: index.html -->
/* file: styles.css */
/* User Editable Region */
nav ul li:hover {
background-color: #dfdfe2; /* Background color on hover */
text-decoration: none;
color: inherit; /* Text color on hover */
padding: 0.5rem 1rem;
display: block;
cursor: pointer;
}
/* User Editable Region */
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36
Challenge Information:
Learn Accessibility by Building a Quiz - Step 47