Context
I’ve <li><div></div></li> elements with a background color on hover.
It looks like :

I want to color the full line, like :

Investigation
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?
Remove all margins from your ul/li, set your content wrappers to
display:block, and then putpaddingon those elements based on the nesting level: http://jsfiddle.net/dYdQB/HTML
CSS