Round Buttons

A Simple Roundcornered box with css3

by Koubenec

HTML

<script type="text/javascript">
  $(document).ready(function(){
    $(".corners").hover(function() {
      $(this).stop().animate({opacity: "1.0"}, 'fast');
    },
    function() {
      $(this).stop().animate({opacity: "0.0"}, 'fast');
    });
  });
</script>
<div class="corners"> 
    <div class="cornertext">Main Site</div> 
</div>
<div class="corners"> 
    <div class="cornertext">Mobile</div> 
</div>

CSS

.corners{
    position:relative;
    background:#8B5E3C;
    width:250px; 
    height: 45px;
    -webkit-border-radius: 20px;  
    -moz-border-radius: 20px;  
    border-radius: 20px;
    margin-bottom:5px;
    margin-top:5px;
}
.cornertext {
    font:italic Times New Roman;
    font-size: 18px;
    color:#fff;
    text-align: center;
    height:50px; 
    position: inherit;
    top:15px;  
    left:0px;    
}