"Buttons With Labels"
Bootstrap 3.0.0 Snippet by BhaumikPatel

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script>
<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
<!------ Include the above in your HEAD tag ---------->
<div class="container">
<div class="row">
<h2>
Cool Buttons With Labels</h2>
<div class="col-md-12">
<button type="button" class="btn btn-labeled btn-success">
<span class="btn-label"><i class="glyphicon glyphicon-ok"></i></span>Success</button>
<button type="button" class="btn btn-labeled btn-danger">
<span class="btn-label"><i class="glyphicon glyphicon-remove"></i></span>Cancel</button>
<br />
<button type="button" class="btn btn-labeled btn-warning">
<span class="btn-label"><i class="glyphicon glyphicon-bookmark"></i></span>Bookmark</button>
<button type="button" class="btn btn-labeled btn-primary">
<span class="btn-label"><i class="glyphicon glyphicon-camera"></i></span>Camera</button>
<br />
<button type="button" class="btn btn-labeled btn-default">
<span class="btn-label"><i class="glyphicon glyphicon-chevron-left"></i></span>Left</button>
<button type="button" class="btn btn-labeled btn-default">
<span class="btn-label"><i class="glyphicon glyphicon-chevron-right"></i></span>
Right</button>
<br />
<button type="button" class="btn btn-labeled btn-success">
<span class="btn-label"><i class="glyphicon glyphicon-thumbs-up"></i></span>Thumbs
Up</button>
<button type="button" class="btn btn-labeled btn-danger">
<span class="btn-label"><i class="glyphicon glyphicon-thumbs-down"></i></span>Thumbs
Down</button>
<br />
<button type="button" class="btn btn-labeled btn-info">
<span class="btn-label"><i class="glyphicon glyphicon-refresh"></i></span>Refresh</button>
<button type="button" class="btn btn-labeled btn-danger">
<span class="btn-label"><i class="glyphicon glyphicon-trash"></i></span>Trash</button>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
3
.btn-label {position: relative;left: -12px;display: inline-block;padding: 6px 12px;background: rgba(0,0,0,0.15);border-radius: 3px 0 0 3px;}
.btn-labeled {padding-top: 0;padding-bottom: 0;}
.btn { margin-bottom:10px; }
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments:

Cool!

Frank () - 8 years ago - Reply 0


doesn't work with btn-blocks :(

adsanti () - 9 years ago - Reply 0


Really nice, unfortunately it does not work with btn-lg and other sizes.

Marcel Overdijk () - 10 years ago - Reply 0


I love you

Xavi () - 11 years ago - Reply 0


I like it, do you edit work with sizes, btn-xs, btn-sm, etc.

angelside () - 11 years ago - Reply 0


Pretty cool. :)

Alex () - 11 years ago - Reply 0