mozilla

Compare Revisions

:only-child

Change Revisions

Revision 35196:

Revision 35196 by FredB on

Revision 35197:

Revision 35197 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 35196
Revision 35197
t14      The <code>:only-child</code> <a href="/en/CSS/Pseudo-classet14      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.> 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
 >ower specificity

Back to History