Quantcast
Channel: Pens from Robin Rendle
Viewing all articles
Browse latest Browse all 185

:not(:placeholder-shown) example

$
0
0

See the Code - See it Full Page - See Details

This pen shows how you might use :not(:placeholder-shown) to change the font-family of an input depending on whether it has a placeholder visible or not. On :focus the input will stay the same but once you start typing – boom! A cursive font appears.

This Pen uses: HTML, SCSS, JavaScript, and


Viewing all articles
Browse latest Browse all 185

Trending Articles