My current challenge is as follows:
HTML
<div id="content">
<h1>Headline</h1>
<p>First paragraph that needs to be yellow.</p>
<p>Second paragraph that need not change. :) </p>
<p>Third paragraph that need not change. :) </p>
</div>
If the CSS rule
#content p:first-child {color:yellow; }
doesn't work because the first child of content
isn't a p
, it is actually an h1
.
Is there a way to achieve this without altering the existing HTML code?
Your help is greatly appreciated!
Best regards, Cris