Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Did CSS has second-letter pseudo element

I'm using a CSS style for a letter to change a color of a first second third letter.

like this:

.header .logo h1 > a:first-letter {
  color: #f91ea5;
}

but I don't know how to change a color of second and third letter it's don't have a second-letter element.

like image 240
Touchy Vivace Avatar asked Feb 14 '23 04:02

Touchy Vivace


1 Answers

I think, you cannot use pseudo elements as :second-letter or :third-letter. It's by design. But if it's realy necessary, then use JavaScript, for example: this or this.

like image 172
sigorilla Avatar answered Feb 16 '23 03:02

sigorilla