css first-child test 2

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

Refer to [This snipplr](http://snipplr.com/view/13653/css-firstchild-test/), added head and body section, even Firefox won't match first-child

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>
  8. </body>
  9. </html>

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.