Change color of value in input - HTML CSS CSS Form

HTML CSS examples for CSS Form:input

Description

Change color of value in input

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">

.problem[readonly]{<!--from   ww  w.  j av a 2 s.co m-->
   color:red;
   -webkit-touch-callout: none;
   -webkit-user-select: none;
   -khtml-user-select: none;
   -moz-user-select: none;
   -ms-user-select: none;
   user-select: none;
}


      </style> 
 </head> 
 <body> 
  <input class="problem" type="text" value="some text" readonly unselectable="on">  
 </body>
</html>

Related Tutorials