Rounded corner button - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Button

Description

Rounded corner button

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

.container {<!--   w  w  w . j av a  2s.  c o  m-->
   display: block;
   width: 600;
   position: absolute;
}
.content {
   background: #e4e4e4;
   font-weight: bold;
   padding: 3px;
}
.round_span3 {
   background: #e4e4e4;
   display: block;
   line-height: 1px;
   overflow: hidden;
   height: 1px;
   margin: 0 3px;
}
.round_span2 {
   background: #e4e4e4;
   display: block;
   line-height: 1px;
   overflow: hidden;
   height: 1px;
   margin: 0 2px;
}
.round_span1 {
   background: #e4e4e4;
   display: block;
   line-height: 1px;
   overflow: hidden;
   height: 1px;
   margin: 0 1px;
}


      </style> 
 </head> 
 <body> 
  <div class="container"> 
   <span class="round_span3"></span> 
   <span class="round_span2"></span> 
   <span class="round_span1"></span> 
   <div class="content"> 
    <!-- Content goes here --> My name is Bond 
    <br> James Bond 
   </div> 
   <span class="round_span1"></span> 
   <span class="round_span2"></span> 
   <span class="round_span3"></span> 
  </div>  
 </body>
</html>

Related Tutorials