NOOB question...
Does LI:HOVER{background:url(image.jpg) 0 0 no-repeat;}
work across all browsers?
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).
Also, hover will not work if you use the wrong CSS format. Note that if you do not get the specificity right, the hover style will not work.
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.
Media Query Hover: Detecting a Pointer # The hover media query allows us to detect the user's primary input mechanism can hover over elements. It can have two values: none detects when the primary input mechanism can't hover or can't conveniently hover, like most cellphones and tablets.
IE versions older than 7 won't support it.
I recommend IETester.
Also, background-repeat is supposed to be defined before background-position, although most browsers will understand the values in whichever order they are given.
http://www.quirksmode.org/css/contents.html , yes, but <= IE6 has some problems, but who cares?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With