Using a.hover in HTMLViewer

I’ve got a CSS definition for a:hover for my HTMLViewer control, but it doesn’t seem to get triggered on hover.

I’m using Windows 8 with the native HTML viewer.

Does anybody know if the native Windows HTMLViewer doesn’t provide this functionality?!

Thank you!

Have you tried Webkit renderer ?

Michel, haven’t tried that yet. Didn’t want to resort to that if I didn’t have to…

Afraid of non native, hey ?

From what I see HTMLViewer native mode supports perfectly hover for . You may want to check your code.

http://www.w3schools.com/cssref/sel_hover.asp click Try it yourself to see it working together with sample code.

According to w3Schools, though, IE does not support this feature with other tags.

Michel, I tried it with the Webkit this morning and the mouse hovering does not work. I’ll have to put a small project together and see if it’s something wrong somewhere in my big project.

If it doesn’t work with WebKit then it’s almost certainly your HTML/CSS

Yeah, I just tried a small test and it worked fine. Time to strip some code to bare essentials, because I can’t see where I’m going wrong!

It was probably some obscure issue with having a

inside an . I moved the style definition of the div into the definition, and now it works fine.

So, I essentially went from this:

<a...><div>ABC</div></a>

to this:

<a...>ABC</a>

and it works fine now. Maybe a CSS guru can explain?

[quote=228552:@Christopher Lester]It was probably some obscure issue with having a

inside an . I moved the style definition of the div into the definition, and now it works fine.

So, I essentially went from this:

<a...><div>ABC</div></a>

to this:

<a...>ABC</a>

and it works fine now. Maybe a CSS guru can explain?[/quote]

The page I linked to explains that IE only supports styling for . Chances are the div consumed the style.