mozilla

Revision 41222 of :first-child

  • Revision slug: CSS/:first-child
  • Revision title: :first-child
  • Revision id: 41222
  • Created:
  • Creator: Mgjbot
  • Is current revision? No
  • Comment robot Adding: [[pl:CSS::first-child]] <<langbot>>

Revision Content

Selects any element that is the first child element of its parent.

Ex:
ul li:first-child{color: green}

<ul>
<li>one</li>
<li>two</li>
</ul>

{{ wiki.languages( { "pl": "pl/CSS/:first-child" } ) }}

Revision Source

<p>Selects any element that is the first child element of its parent.
</p><p>Ex:<br>
ul li:first-child{color: green}
</p><p>&lt;ul&gt;<br>
&lt;li&gt;<span style="color: green">one</span>&lt;/li&gt;<br>
&lt;li&gt;two&lt;/li&gt;<br>
&lt;/ul&gt;
</p>
<div class="noinclude">
</div>
{{ wiki.languages( { "pl": "pl/CSS/:first-child" } ) }}
Revert to this revision