luca luca - 6 months ago 13
CSS Question

css selector: first paragraph's first letter inside a div

<div>
<p>
Once upon a time..
</p>
<p>
A beautiful princess..
</p>
</div>


How can I select (in my css) the first letter of the first paragraph inside this div??

Thanks

Luca

Answer
div p:first-of-type:first-letter { font-weight: bold; }