mozilla

Compare Revisions

:first-child

Change Revisions

Revision 446603:

Revision 446603 by teoli on

Revision 472505:

Revision 472505 by Tripad on

Title:
:first-child
:first-child
Slug:
Web/CSS/:first-child
Web/CSS/:first-child
Tags:
"css", "CSS Référence", "CSS Reference", "Selectors", "NeedsLiveSample"
"CSS", "CSS Référence", "CSS Reference", "Selectors"
Content:

Revision 446603
Revision 472505
tt42    </p>
43    <p>
44      &nbsp;
45    </p>
46    <h2 name="Example_2_-_Using_UL">
47      Example 2 - Using UL
48    </h2>
49    <h3>
50      HTML Content
51    </h3>
52    <pre class="brush: html">
53&lt;ul&gt;
54  &lt;li&gt;List 1&lt;/li&gt;
55  &lt;li&gt;List 2&lt;/li&gt;
56  &lt;li&gt;List 3&lt;/li&gt;
57&lt;/ul&gt;
58</pre>
59    <h3>
60      CSS Content
61    </h3>
62    <pre class="brush: css">
63ul li{
64  color:red;
65}
66ul li:first-child{
67  color:green;
68}
69</pre>
70    <h5>
71      Live Sample : <a href="http://jsfiddle.net/Tripad/kvDa4/emb
 >edded/result/">http://jsfiddle.net/Tripad/kvDa4/</a>
72    </h5>
73    <p>
74      &nbsp;

Back to History