Change the placeholder's font-weight - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Font

Description

Change the placeholder's font-weight

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <style id="compiled-css" type="text/css">
.infoPlaceholder::-webkit-input-placeholder {
   font-weight:lighter;
   color:Chartreuse;
}

.infoPlaceholder::-moz-placeholder {<!--from  ww w  .ja  v  a2 s .c om-->
   font-weight:lighter;
   color:yellow;
}

.infoPlaceholder::-ms-input-placeholder {
   font-weight:lighter;
   color:blue;
}
</style> 
 </head> 
 <body> 
  <input class="infoPlaceholder" name="firstName" placeholder="First Name">  
 </body>
</html>

Related Tutorials