Button disabled styling - HTML CSS CSS Form

HTML CSS examples for CSS Form:input button style

Description

Button disabled styling

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

input[type=button]{
   background-color: #6CB300;
   color:#fff;
   border:0;
   font-size:1.5em;
   padding:2% 3%;
}
input[type=button][disabled]{
   background-color:#CCC;
}


      </style> 
 </head> <!--from  w w w. jav a2s  . com-->
 <body> 
  <input type="button" value="Next question"> 
  <input type="button" disabled value="Next question">  
 </body>
</html>

Related Tutorials