HTML Placeholder Styling

0 comments

 

In addition to the Jquery placeholder styles we currently use (<html5):

 

.placeholder-active{ /* awesome styles*/ }

 

You can add the following classes so you can style the placeholder text in the html 5 (which will automatically take presidence over the jquery placeholder)

 

::-webkit-input-placeholder{ /* awesome styles*/ } 

input:-moz-placeholder { /* awesome styles*/ }

 

You can also target individual browsers (dunno why you would, but can) as explained in the reference I got this from:

Ref: http://davidwalsh.name/html5-placeholder-css


Comments


Leave a Comment