I have the following html code, and I'm trying to change the background color of the div tags in such a way that when I mouse over the text, the background should turn to grey but when I move the mouse out of the tag, it should change to white. I'm trying to do this using css but I'm having a hard time coming up with the code. Is this possible using css only? Can someone show me an example?
<div class="custom-select">
<div style="background-color: grey;">TEST 1</div>
<div style="background-color: white;">TEST 2</div>
</div>
Thanks in advance.