I’m trying to make a default hover effect for all my inline menus but the hover effect are not covering the entirely “li a” element.
I’ve put the code below to ilustrate the problem.
http://jsfiddle.net/yWqK4/
I’m trying to make a default hover effect for all my inline menus but
Share
You are modifying the
<a>tag to ablockdisaply and doing all other kind of unnecessary things.The only thing you need to do, is to change the background color of your element.
Replace your CSS that is used for the hover effect with:
and it is working as expected. See http://jsfiddle.net/muNFY/