Making a Trip to Universal with a Tween and Teen Magical

Placeholder for Select

Placeholders are a nice option for styling and labeling forms without taking up space for a separate label for each input. However, select boxes do not have a placeholder parameter. The style of having gray text as a placeholder in the select box and darker text for the options can be recreated with two lines of CSS.

form select { color: #999; }

form select option { color: #000; }


The comments to this entry are closed.