Compare Revisions

:last-child

Change Revisions

Revision 446637:

Revision 446637 by teoli on

Revision 472511:

Revision 472511 by Tripad on

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

Revision 446637
Revision 472511
tt48    <h3 name="Specifications">
49      Example 2 : Using UL
50    </h3>
51    <p>
52      Live Sample : <a href="http://jsfiddle.net/Tripad/rgz2X/">h
 >ttp://jsfiddle.net/Tripad/rgz2X/</a>
53    </p>
54    <pre class="brush: html">
55&lt;ul&gt;
56    &lt;li&gt;List 1&lt;/li&gt;
57    &lt;li&gt;List 2&lt;/li&gt;
58    &lt;li&gt;List 3&lt;/li&gt;
59&lt;/ul&gt;
60</pre>
61    <pre class="brush: css">
62ul li{
63    color:red;
64}
65ul li:last-child{
66    color:green;
67}
68</pre>

Back to History