Compare Revisions

:first-of-type

Change Revisions

Revision 41217:

Revision 41217 by brianloveswords on

Revision 41218:

Revision 41218 by brianloveswords on

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

Revision 41217
Revision 41218
n10    <h2 name="Summary">n10    <h2 id="Summary" name="Summary">
n16    <h2 name="Syntax">n16    <h2 id="Syntax" name="Syntax">
n22    <h2 name="Example">n22    <h2 id="Example" name="Example">
n25    <p>n
26      To match the first data cell in a table row, you can use th
>is: 
27    </p>
n29tr &gt; td:first-of-typen26p strong:first-of-type {
27  color: lime;
28}
n31    <h2>n30    <pre class="brush: html">
31&lt;p&gt;
32  &lt;em&gt;I'm not lime :(&lt;/em&gt;
33  &lt;strong&gt;I'm lime :D&lt;/strong&gt;
34  &lt;strong&gt;I'm not lime :(&lt;/strong&gt;
35&lt;/p&gt;
36</pre>
37    <h2 id="Browser_compatibility">
t129    <h2 name="See_also">t135    <h2 id="See_also" name="See_also">

Back to History