Button with multiple icons - HTML CSS CSS Form

HTML CSS examples for CSS Form:input image button

Description

Button with multiple icons

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

.btn {<!--from www  .ja  v  a  2s .  c o  m-->
   display: inline-block;
   text-align: center;
   vertical-align: middle;
   padding: 12px 24px;
   border: 1px solid #acacac;
   border-radius: 8px;
   background: #f5f5f5;
   background: -webkit-gradient(linear, left top, left bottom, from(#f5f5f5), to(#acacac));
   background: -moz-linear-gradient(top, #f5f5f5, #acacac);
   background: linear-gradient(to bottom, #f5f5f5, #acacac);
   -webkit-box-shadow: #ffffff 0px 0px 40px 0px;
   -moz-box-shadow: #ffffff 0px 0px 40px 0px;
   box-shadow: #ffffff 0px 0px 40px 0px;
   text-shadow: #ffffff 1px 1px 1px;
   font: normal normal bold 20px arial;
   color: #111111;
   text-decoration: none;
}
.btn:hover,
.btn:focus {
   border: 1px solid #f5f5f5;
   background: #ffffff;
   background: -webkit-gradient(linear, left top, left bottom, from(#ffffff), to(#cecece));
   background: -moz-linear-gradient(top, #ffffff, #cecece);
   background: linear-gradient(to bottom, #ffffff, #cecece);
   color: #111111;
   text-decoration: none;
}
.btn:active {
   background: #acacac;
   background: -webkit-gradient(linear, left top, left bottom, from(#acacac), to(#acacac));
   background: -moz-linear-gradient(top, #acacac, #acacac);
   background: linear-gradient(to bottom, #acacac, #acacac);
}
.btn:before{
   content:  "\0000a0";
   display: inline-block;
   height: 24px;
   width: 24px;
   line-height: 24px;
   margin: 0 4px -6px -4px;
   position: relative;
   top: 0px;
   left: 0px;
   background: url("https://www.java2s.com/style/demo/Firefox.png") no-repeat left center transparent;
   background-size: 100% 100%;
}
.client{
   background: url("https://www.java2s.com/style/demo/InternetExplorer.png") no-repeat  transparent;
}
.poslovnica{
   background: url("https://www.java2s.com/style/demo/InternetExplorer.png") no-repeat left center transparent;
   background-size: 20% 60%;
}


      </style> 
 </head> 
 <body> 
  <p> <a class="btn client" href="#">Klijenti</a> </p> 
  <p> <a class="btn poslovnica" href="#">Poslovnice</a> </p>  
 </body>
</html>

Related Tutorials