Styling a button in CSS - HTML CSS CSS Form

HTML CSS examples for CSS Form:input button style

Description

Styling a button in CSS

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

#inforight<!--from  www.  j av a2s  .c o  m-->
{
   width: 200px;
   float: right;
   text-align: center;
   background-color: #735D41;
}


      </style> 
 </head> 
 <body> 
  <div id="nav"> 
   <div id="search"> 
    <form> 
     <input type="text" placeholder="Search" required> 
     <a href="Linkpage.html"> <input type="button" value="Search" id="inforight"> </a> 
    </form> 
   </div> 
  </div>  
 </body>
</html>

Related Tutorials