HTML CSS examples for CSS Widget:Button
Two colored background button
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> .btn{<!-- w w w. j a va2 s . c om--> background: rgb(0,166,255); /* Old browsers */ background: -moz-linear-gradient(top, rgba(0,166,255,1) 0%, rgba(0,166,255,1) 50%, blue 53%, blue 100%); /* FF3.6+ */ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(0,166,255,1)), color-stop(50%,rgba(0,166,255,1)), color-stop(53%,blue), color-stop(100%,blue)); /* Chrome,Safari4+ */ background: -webkit-linear-gradient(top, rgba(0,166,255,1) 0%,rgba(0,166,255,1) 50%,blue 53%,blue 100%); /* Chrome10+,Safari5.1+ */ background: -o-linear-gradient(top, rgba(0,166,255,1) 0%,rgba(0,166,255,1) 50%,blue 53%,blue 100%); /* Opera 11.10+ */ background: -ms-linear-gradient(top, rgba(0,166,255,1) 0%,rgba(0,166,255,1) 50%,blue 53%,blue 100%); /* IE10+ */ background: linear-gradient(to bottom, rgba(0,166,255,1) 0%,rgba(0,166,255,1) 50%,blue 53%,blue 100%); /* W3C */ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00a6ff', endColorstr='#029aec',GradientType=0 ); /* IE6-9 */ border:0px; color:white; font-family: HelveticaNarrow; font-weight: bold; font-size: 12pt; text-transform: uppercase; cursor: pointer; position:relative; width:728px; height:45px; } .btn div{ position:absolute; top:0; left:0; right:0; bottom:0; background-image: url('https://www.java2s.com/style/demo/InternetExplorer.png'); background-position: right; background-repeat:no-repeat; background-size:32px 32px; } </style> </head> <body> <button class="btn btn-wide"> Load more <div></div> </button> </body> </html>