How to change the input text colour in css web development

38 Views Asked by At

I am A novice coder(beginner) and I recently created a Netflix clone but there is one issue in the inout placeholder whenever I type it comes in black colour but since the website is itself blackish its not clearly visible ....is there any way to change the input color

tried some inout placeholder functions all were in vain

3

There are 3 best solutions below

2
rahul revanna On

The ::placeholder pseudo-element is used to style the placeholder text within the input field. You can set the color property to change the color of the placeholder text. You can select placeholder and add color in CSS.

0
Brett Donald On

Style your text inputs with a color of your choice. In your CSS, add a rule like this:

input[type=text] {
  color: white;
}
0
Azhar Shaikh On

Style your text inputs with a CSS color property. To change the text input colour. Try this code for solve the problem:

input[type=text] {
  color : #FFFFFF;
}