Compare Revisions

:nth-of-type

Change Revisions

Revision 352113:

Revision 352113 by wlach on

Revision 352117:

Revision 352117 by wlach on

Title:
:nth-of-type
:nth-of-type
Slug:
CSS/:nth-of-type
CSS/:nth-of-type
Tags:
"css", "Selectors", "CSS Reference", "NeedsExample"
"css", "Selectors", "CSS Reference", "NeedsExample"
Content:

Revision 352113
Revision 352117
n22    <h2 id="Examples" name="Examples">n22    <h2 id="Example" name="Example">
23      Examples23      Example
n25    <h2 id="Alternating_paragraph_justification_example" name="Aln25    <p>
>ternating_paragraph_justification_example"> 
26      Alternating paragraph justification example26      This example causes the text alignment of paragraphs to alt
 >ernate between left and right.
27    </h2>27    </p>
n46      {{ EmbedLiveSample('Alternating_paragraph_justification_exan46      {{ EmbedLiveSample('Example') }}
>mple') }} 
t48    <p>t
49      This example causes the positions of floated images to alte
>rnate between right and left. 
50    </p>
51    <pre class="brush: css">
52img:nth-of-type(2n+1) { float: right; }
53img:nth-of-type(2n) { float: left; }
54</pre>

Back to History