Submit your widget

Pure CSS3 Dynamic Buttons

Created 3 years ago   Views 27533   downloads 5044    Author naioo
Pure CSS3 Dynamic Buttons
View DemoDownload 2.5 KB
461
Share |

The main CSS markup

 

.btn {
 display: inline-block;
 background: url(btn.bg.png) repeat-x 0px 0px;
 padding:5px 10px 6px 10px;
 font-weight:bold;
 text-shadow: 1px 1px 1px rgba(255,255,255,0.5);
 border:1px solid rgba(0,0,0,0.4);
 -moz-border-radius: 5px;
 -moz-box-shadow: 0px 0px 2px rgba(0,0,0,0.5);
 -webkit-border-radius: 5px;
 -webkit-box-shadow: 0px 0px 2px rgba(0,0,0,0.5);
}

 

Adding the color

 

.blue  {background-color: #CCCCCC; color: #141414;}
.blue:hover {background-color: #00c0ff; color: #ffffff;}

.green  {background-color: #CCCCCC; color: #141414;}
.green:hover {background-color: #8aff00; color: #ffffff;}

.red  {background-color: #CCCCCC; color: #141414;}
.red:hover {background-color: #ff004e; color: #ffffff;}