0

Some heading tags are coming from the template or user defined and html is look like:

<h1 class="myheading">Chauffeur Driven Cars in London</h1>
<h2 class="myheading">Chauffeur Driven Cars in London</h2>

User want to display it like this:

Chauffeur Driven Cars in London

A quick solution might be

<h1 class="myheading"><span class="red">C</span>hauffeur Driven Cars in London</h1>

But I cant apply it, as user may add any text of his choice

Is it possible to apply some CSS solution for this issue ?

1

1 Answer 1

0

you can do the css as:

h1::first-letter { 
    // your style
}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.