<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css" rel="stylesheet">
<link href='https://fonts.googleapis.com/css?family=Lato' rel='stylesheet' type='text/css'>
<button class="btn btn-1 btn-sep icon-info">Button</button>
<button class="btn btn-2 btn-sep icon-cart">Button</button>
<button class="btn btn-3 btn-sep icon-heart">Button</button>
<button class="btn btn-4 btn-sep icon-send">Button</button>
/* General button style */
.btn {
border: none;
font-family: 'Lato';
font-size: inherit;
color: inherit;
background: none;
cursor: pointer;
padding: 25px 80px;
display: inline-block;
margin: 15px 30px;
text-transform: uppercase;
letter-spacing: 1px;
font-weight: 700;
outline: none;
position: relative;
-webkit-transition: all 0.3s;
-moz-transition: all 0.3s;
transition: all 0.3s;
}
.btn:after {
content: '';
position: absolute;
z-index: -1;
-webkit-transition: all 0.3s;
-moz-transition: all 0.3s;
transition: all 0.3s;
}
/* Pseudo elements for icons */
.btn:before {
font-family: 'FontAwesome';
speak: none;
font-style: normal;
font-weight: normal;
font-variant: normal;
text-transform: none;
line-height: 1;
position: relative;
-webkit-font-smoothing: antialiased;
}
/* Icon separator */
.btn-sep {
padding: 25px 60px 25px 120px;
}
.btn-sep:before {
background: rgba(0,0,0,0.15);
}
/* Button 1 */
.btn-1 {
background: #3498db;
color: #fff;
}
.btn-1:hover {
background: #2980b9;
}
.btn-1:active {
background: #2980b9;
top: 2px;
}
.btn-1:before {
position: absolute;
height: 100%;
left: 0;
top: 0;
line-height: 3;
font-size: 140%;
width: 60px;
}
/* Button 2 */
.btn-2 {
background: #2ecc71;
color: #fff;
}
.btn-2:hover {
background: #27ae60;
}
.btn-2:active {
background: #27ae60;
top: 2px;
}
.btn-2:before {
position: absolute;
height: 100%;
left: 0;
top: 0;
line-height: 3;
font-size: 140%;
width: 60px;
}
/* Button 3 */
.btn-3 {
background: #e74c3c;
color: #fff;
}
.btn-3:hover {
background: #c0392b;
}
.btn-3:active {
background: #c0392b;
top: 2px;
}
.btn-3:before {
position: absolute;
height: 100%;
left: 0;
top: 0;
line-height: 3;
font-size: 140%;
width: 60px;
}
/* Button 3 */
.btn-4 {
background: #34495e;
color: #fff;
}
.btn-4:hover {
background: #2c3e50;
}
.btn-4:active {
background: #2c3e50;
top: 2px;
}
.btn-4:before {
position: absolute;
height: 100%;
left: 0;
top: 0;
line-height: 3;
font-size: 140%;
width: 60px;
}
/* Icons */
.icon-cart:before {
content: "\f07a";
}
.icon-heart:before {
content: "\f55a";
}
.icon-info:before {
content: "\f05a";
}
.icon-send:before {
content: "\f1d8";
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.