title: CSS selector for first image, only if first child
body: <p>Does anyone know if it's possible to define a CSS selector that selects the first image within a div, but only if it's the first child within the div.</p>
  
  <p>In jQuery I would use a comparison something like this...</p>
  
  <pre><code>if ($('#div img:first-child') == $('#div&gt;*:first-child')) {
    ...
  }
  </code></pre>