mozilla

Compare Revisions

:hover

Change Revisions

Revision 572:

Revision 572 by Jürgen Jeka on

Revision 573:

Revision 573 by Jürgen Jeka on

Title:
:hover
:hover
Slug:
CSS/:hover
CSS/:hover
Tags:
css, "CSS Reference", NeedsMobileBrowserCompatibility
css, "CSS Reference", NeedsMobileBrowserCompatibility
Content:

Revision 572
Revision 573
n10    <h3 class="editable">n10    <h3>
11      Summary
12    </h3>
13    <p>
14      The <code>:hover</code> CSS pseudo-class applies while the 
 >user designates an element with a pointing device, but does not n
 >ecessarily activate it.
15    </p>
16    <p>
17      Visual user agents like Firefox apply this pseudo-class whe
 >n the cursor (mouse pointer) hovers over an element.
18    </p>
19    <h3>
20      Examples
21    </h3>
22    <pre>
23:link:hover { outline: dotted red; }
24 
25.foo:hover { background: gold; }
26</pre>
27    <h3>
11      <span>Specifications</span>28      Specifications
n18        <a class="external" href="http://www.w3.org/TR/css3-selecn35        <a class="external" href="http://www.w3.org/TR/css3-selec
>tors/#useraction-pseudos" rel="external nofollow" target="_blank">tors/#useraction-pseudos" target="_blank" title="http://www.w3.or
> title="http://www.w3.org/TR/css3-selectors/#useraction-pseudos">>g/TR/css3-selectors/#useraction-pseudos">CSS 3 Selectors #useract
>CSS 3 Selectors #useraction-pseudos</a>>ion-pseudos</a>
n21    <h3 name="Browser_compatibility">n38    <h3>
n35          <td>n52          <td rowspan="2">
n39            4.0&nbsp; (only for <code>&lt;a&gt;</code>)<br>n56            4.0&nbsp; (only for <code>&lt;a&gt;</code>)
57          </td>
58        </tr>
59        <tr>
60          <td>
n45            Firefoxn66            Firefox (Gecko)
n48            <strong>1.0</strong>n69            <strong>1.0</strong> (1.0)
70          </td>
71        </tr>
72        <tr>
73          <td rowspan="2">
74            Opera
75          </td>
76          <td>
77            4.0&nbsp; (only for <code>&lt;a&gt;</code>)
n53            Operan
54          </td>
55          <td>
56            4.0&nbsp; (only for <code>&lt;a&gt;</code>)<br>
n62            Safarin87            Safari (WebKit)
t65            <strong>2.0.4</strong> (various bugs before)t90            <strong>2.0.4</strong> (419)<br>
91            <span style="font-size: small;">various bugs before</
 >span>

Back to History