trant trum
trant trum

Reputation: 219

How to make this code work in ie browser- version 10?

nav ul li:hover 
{
     background:yellow;
}

The above code works fine in all the brosers except IE. Any help would be appreciated!

Upvotes: 1

Views: 75

Answers (1)

Josh Crozier
Josh Crozier

Reputation: 241078

In theory, nav ul li:hover should work in all browsers (example)

That only assumes there isn't any other CSS. Without knowing what the markup looks like though, you could try targeting the descendant anchor elements:

nav ul li a:hover {
    background:yellow;
}

Upvotes: 1

Related Questions