0

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/

2 Answers 2

3

You are modifying the <a> tag to a block disaply 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:

.Menu li a:hover {
    background-color: rgba(0,0,0,0.3);
}

and it is working as expected. See http://jsfiddle.net/muNFY/

Sign up to request clarification or add additional context in comments.

Comments

2

you don't need use :before to get desirable result. Fixed tour styles here http://jsfiddle.net/yWqK4/2/

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.