Answers for "how to change the placeholder text style"

CSS
1

placeholder text css

input {
  border: 1px solid black;
  padding: 3px;
  height: 300px;
}

input:placeholder-shown {
  border-color: teal;
  color: purple;
  font-style: italic;
}
Posted by: Guest on March-14-2021
0

how to customize placeholder css

<form>
  <input type="text" id="name" name="name" required="required" />
  <label for="name">Name</label>
  <br/>
  <input type="email" id="email" name="email" placeholder="Email" required="required" />
  <br/>
  <input type="submit" />
</form>
 Run code snippetHide results
Posted by: Guest on November-04-2021

Code answers related to "how to change the placeholder text style"

Browse Popular Code Answers by Language