Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Textarea placeholder fontsize html css

Tags:

html

css

How do i increase textarea's placeholder font size ? i tried this and it didnt work. thanks.

textarea::placeholder {
  font-size: 20;
}
like image 753
obumoon Avatar asked Oct 25 '25 16:10

obumoon


1 Answers

You forgot the px at the end. That is very important. For example, how does it know if you want px or em?

View this for more information.

textarea::placeholder {
  font-size: 20px;
}
<textarea placeholder="yes"></textarea>
like image 72
Aniket G Avatar answered Oct 28 '25 06:10

Aniket G