Context
I have <li><div></div></li> elements with hover background color.
Looks like:

I want to color the entire line, for example:

Study
The code:
div.wrapper:hover { background: rgba(220, 220, 220, 0.3); }
I tried this without success:
div.wrapper:hover:before { content: ""; position: absolute; width: 100%; height: 0; top: 0; right: 0; background: rgba(220, 220, 220, 0.3); }
Question
How can i do this?
html css
Gg.
source share