Create arrow style css button - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Button

Description

Create arrow style css 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">
#buttonboxback {<!--from www.  j av  a2 s  . c  om-->
   width:151px;
   height:41px;
   background-color:Chartreuse;
   position:relative;
   margin-left:41px;
   border-radius:6px;
}

#buttonboxback:before {
   content:"";
   position:absolute;
   top:0;
   left:-18px;
   border-style:solid;
   border-width:21px 21px 21px 0;
   border-color:yellow;
}

#buttonboxback>a {
   display:block;
   text-decoration:none;
   text-align:center;
   color:blue;
   font:bold 19px/41px Sans-Serif;
}

#buttonboxback:hover {
   background-color:pink;
}

#buttonboxback:hover:before {
   border-right-color:WhiteSmoke;
}
</style> 
 </head> 
 <body> 
  <div id="buttonboxback"> 
   <a href="index.php">BACK</a> 
  </div>  
 </body>
</html>

Related Tutorials