Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

202
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda