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

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

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