I am sure there is a very simple explanation for this but I have tried everything I can and seem to be missing it. I have the following css code which is applied to li items under a ul parent. I have applied by doing
.test {
font-family: 'Quicksand', sans-serif;
font-size: 13px;
background-color: #d9edf7;
}
.test:hover {
background-color: red;
font-size: 14px;
}
<ul>
<li class="test">test</li>
<li class="test">test2</li>
<li class="test">test3</li>
</ul>
The issue is that on hover, it changes the font size without changing the background. Am I missing something?