css first-child test

/ Published in: HTML
Save to your folder(s)

Firefox 3: blue
Chromium build 12758: black

Copy this code and paste it in your HTML
  1. <style type="text/css">
  2. p:first-child { color:blue; }
  3. <div>
  4. <script>function dummy(){}</script>
  5. <p>I am a strong man.</p>
  6. <p>I am a strong man.</p>
  7. </div>

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.