:)
Why does my first paragraph not have a red background?
HTML:
<div class="item">
<h1><a href="http://localhost/test">Test</a></h1>
<p>This is a new entry </p>
<p>This is a new entry</p>
</div>
CSS:
.item p:first-child {background:red}
Demo: http://jsfiddle.net/tv90yrbz/
Many thanks for any help with this.
` is not the first child :)
– Harry Jul 15 '15 at 09:38