Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

204
Vistas
How to add required styles to text with specific fonts?

I want all text on my site with the font name 'classylight' to have a letter spacing and word spacing of 50px each.

Defining a class in the site map and adding class names for each post is a time consuming process.

To reduce the time, I tried to solve this issue with the attribute*=style property.

I tried -

body ["style=font-family:classylight"] {
letter-spacing:50px;
word-spacing:50px; 
}

It's not working. Can anyone help? I would prefer css for this. If there's no possibility in css, please refer with javascript, jquery.

PS - I'm not looking for answers which adds styles directly to body part like

p {
font-family: classylight;
letter-spacing:50px;
word-spacing:-20px; 
}
<p>text</p>

Or

.classylight {
   font-family: classylight;
    letter-spacing:50px;
    word-spacing:-20px;
}
<p class="classylight">text</p>

These are time consuming as I use different fonts for different lines for different paras for different posts!!!

about 4 years ago · Juan Pablo Isaza
2 Respuestas
Responde la pregunta

0

if you have own fonts.css then u can directly add css letter-spacing:50px; word-spacing:50px; on your font css file

about 4 years ago · Juan Pablo Isaza Denunciar

0

Try this and add reference of the css file in your main html page.

body  {
letter-spacing:50px;
word-spacing:50px; 
font-family:classylight;
}
about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda