Compare Revisions

:only-child

Change Revisions

Revision 35197:

Revision 35197 by FredB on

Revision 35198:

Revision 35198 by FredB on

Title:
:only-child
:only-child
Slug:
CSS/:only-child
CSS/:only-child
Tags:
css, "CSS Reference", Selectors
css, "CSS Reference", Selectors
Content:

Revision 35197
Revision 35198
n14      The <code>:only-child</code> <a href="/en/CSS/Pseudo-classen14      The <code>:only-child</code> <a href="/en/CSS/Pseudo-classe
>s" title="Pseudo-classes">pseudo-class</a> represents any element>s" title="Pseudo-classes">pseudo-class</a> represents any element
> which is the only child of its parent. Same as&nbsp;:first-child> which is the only child of its parent. Same as&nbsp;:first-child
>:last-child or&nbsp;:nth-child(1):nth-last-child(1), but with a l>:last-child or&nbsp;:nth-child(1):nth-last-child(1), but with a l
>ower specificity>ower specificity.
tt182    <p>
183      {{ languages( { "fr": "fr/CSS/:only-child" }) }}
184    </p>

Back to History