As in the CSS below, when I run the project and hover over the li the color only affects the background of the text and not the entire li row.
But when I change the code to the below it covers the entire row.
.items-results li:hover {
background-color: #000;
}
How is this happening ?
.items-html--menu:hover {
background-color: #000;
}
<ul class="items-results" id="item-results">
<li class="items-html--menu">HTML</li>
<li class="items-html--menu">CSS</li>
</ul>