Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

199
Views
In CSS, can I apply an alternative font-feature-setting style to a single letter?

I'm trying to apply a different style (using font-feature-settings: 'aalt';) for a single letter type: an uppercase R. As expected, the whole div that has the style applied gets changed to the stylistic alternate. Is there a way to get it to work on just the R?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Is there a way to get it to work on just the R?

Apply the style only to the letters that you want to stylize:

body { font-family: sans-serif; }
.line { display: block; line-height: 1.5rem; }
.stylized { color: red; }
<div>
  <h1><span class="stylized">R</span>ow, <span class="stylized">R</span>ow, <span class="stylized">R</span>ow Your Boat</h1>
  <p>
    <span class="line"><span class="stylized">R</span>ow, row, row your boat,</span>
    <span class="line">Gently down the stream.</span>
    <span class="line">Merrily, merrily, merrily, merrily,</span>
    <span class="line">Life is but a dream.</span>
   </p>
</div>

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!