Skip to content

Placeholder Shown

• 1 min read

Change the input style and apperance if the the placeholder is visible.

:placeholder-shown

input {
// styles
}
input:placeholder-shown {
// specific styles if placeholder is shown
}

Support

Great - Partial IE