How can i style the first letter of the first paragraph in this code, without using “:nth-of-type” pseudo selectors?
<div id="content-wrapper">
<div id="breadcrumbs">
<ul>
<li><a href="">Link</a></li>
</ul>
</div>
<article>
<section>
<h2>Page Name</h2>
<h3>Title</h3>
<p>Here, i'd like to style the first letter here</p>
</section>
</article>
</div>
If you’re trying to support older versions of IE, I’m afraid you’re going to have to wrap the first letter in a
<span>tag and style it that way.Or if your content is dynamic, you could use jQuery to wrap the first letter in a
<span>, and the style will then be applied.Hope this helps.