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

88
Views
How can I apply a fore-ground css stylling rather than a back-ground stylling to text?

I have some text in HTML lets assume inside a <p> Element,
and I want to add some color for example rgba(0,0,0,0.1) but
above or else on-top of the text and not below or else
behind the text.

Question: How can I achieve that? ( Feel free to answer using both css or javascript if needed ).

Thanks in advance for your time and efforts,
Periklis

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

0

As Stated In This Question Click Here This Is Not Possible Natively With CSS. But We Can Have A Work Around For This And Here's How You Do It.

<p>Here is the random paragraph. Here <span style = "color:transparent;background-color:blue;">You Cannot Read Me</span> But You Can Read Me.</p>

This Is Done By Removing The color Of The text and adding A background color. Also you can replace the background to a image if you want.

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!