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

155
Views
Texto que no se muestra en Firefox (CSS)

Estoy creando una barra de progreso en la que el contenido que recibo es del backend y, por lo tanto, se incluye con la ayuda de atributos de datos como,

<progress max="500" value="488" data-max-value="500" data-text="488 Available of 500"></progress>

E incluyó el contenido a través de CSS como,

 progress::before { content: attr(data-text); position: absolute; color: #fff; font-size: 15px; padding: 0 10px; top: 18%; }

Fragmento de trabajo:

 progress { color: blue; height: 50px; } progress::before { content: attr(data-text); position: absolute; color: #fff; font-size: 15px; padding: 0 10px; top: 12%; }
 <progress max="500" value="488" data-max-value="500" data-text="488 Available of 500"></progress>

El fragmento anterior funciona en Chrome pero no en Firefox.

¿Podría ayudarme a solucionar el problema de cargar el contenido dinámico data-text="488 Available of 500" en todos los navegadores? Gracias por adelantado.

about 4 years ago · Juan Pablo Isaza
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!