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

442
Views
Placeholder of input text on my react component is not supporting:

I have used this code:
Color is not showing

.class::-webkit-input-placeholder 
{
color: red;
}
about 4 years ago · Juan Pablo Isaza
2 answers
Answer question

0

It seems ::-webkit-input-placeholder is not the correct way to do it.

You should use it like this:

::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */
  color: red;
  opacity: 1; /* Firefox */
}

:-ms-input-placeholder { /* Internet Explorer 10-11 */
  color: red;
}

::-ms-input-placeholder { /* Microsoft Edge */
  color: red;
}

Read more here: w3schools

about 4 years ago · Juan Pablo Isaza Report

0

::-webkit-input-placeholder doesn't apply to every browser
use ::placeholder

.class::placeholder{
    color: red;
}
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!