Html/css, make a button look like a div - HTML CSS CSS Form

HTML CSS examples for CSS Form:input button style

Description

Html/css, make a button look like a div

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <style>

.button {<!--from  ww  w. ja v a  2 s . co m-->
   background-color: white; /* button background */
   color: black; /* label colour */
   border: 2px solid #0040ff; /* 2px blue line border */
   padding: 10px 20px;
   border-radius: 10px; /* rounded corner style */
}

      </style> 
 </head> 
 <body> 
  <h2>A styled button.</h2> 
  <button class="button">Button label</button>  
 </body>
</html>

Related Tutorials