Search code examples
cssfontssizetypography

Chang font size only for a single character with CSS


Is it possible to change the size of a specific character using CSS?

For example, in a paragraph I am using font-face: Arial; font-size: 12pt;. I would like that only the letter "a" would appear in size 10.

Is there a way to do that?

Thanks.


Solution

  • I don't believe you can, consider using a text editor to do a find/replace 'a' with <span class='a-xxx'>a</span> and then you can use css to do .a-xxx { font-size: 10px; }