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

191
Views
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 answers
Answer question

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 Report

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 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!