Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

:hover pseudo-class of CSS does not work in IE7

I have problem with the :hover pseudo-class of CSS.

I am using it like

tr.lightRow:hover {
    color:red
} 

It works in Safari and Firefox but it does not work in IE7. Please help me.

like image 403
Tushar Ahirrao Avatar asked Jan 16 '10 13:01

Tushar Ahirrao


People also ask

Can you hover a pseudo element?

You can't apply a hover to just the pseudo element.

Is hover a pseudo selector?

The :hover CSS pseudo-class matches when the user interacts with an element with a pointing device, but does not necessarily activate it. It is generally triggered when the user hovers over an element with the cursor (mouse pointer).

Does hover work on Div?

To display div element using CSS on hover a tag: First, set the div element invisible i.e display:none;. By using the adjacent sibling selector and hover on a tag to display the div element.

What is hover :: after in CSS?

The :before and :after selectors in CSS is used to add content before and after an element. The :hover is pseudo-class and :before & :after are pseudo-elements. In CSS, pseudo-elements are written after pseudo-class. Syntax: a:hover::before { // CSS Property } a:hover::after { // CSS Property }


1 Answers

IE7 supports :hover, at least in standards mode. It may not in quirks mode.

like image 136
Quentin Avatar answered Oct 27 '22 12:10

Quentin