"Buttons With Labels"
Bootstrap 3.1.0 Snippet by kennyjsa

<link href="//netdna.bootstrapcdn.com/bootstrap/3.1.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//netdna.bootstrapcdn.com/bootstrap/3.1.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 btn-lg"> <span class="btn-label"><i class="glyphicon glyphicon-ok"></i></span>Success</button> <button type="button" class="btn btn-labeled btn-danger btn-lg"> <span class="btn-label"><i class="glyphicon glyphicon-remove"></i></span>Cancel</button> <br /> <button type="button" class="btn btn-labeled btn-warning"> <i class="glyphicon glyphicon-bookmark"></i>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> <br /> <a class="btn btn-success btn-labeled" href="http://www.jquery2dotnet.com" role="button"> <span class="btn-label"><i class="glyphicon glyphicon-info-sign"></i></span>Info Web</a> </div> </div> <br> <br> <br> <div class="col-md-12"> <button type="button" class="btn btn-labeled btn-success"> <i class="glyphicon btn-label glyphicon-ok"></i> Success</button> <button type="button" class="btn btn-danger"> <i class="glyphicon glyphicon-remove btn-label"></i> Cancel</button> <br /> <button type="button" class="btn btn-warning btn-lg"> <i class="glyphicon glyphicon-bookmark"></i> Bookmark</button> <button type="button" class="btn btn-labeled btn-primary"> <i class="glyphicon glyphicon-camera"></i> Camera</button> <br /> <button type="button" class="btn btn-default"> <i class="glyphicon glyphicon-chevron-left"></i> Left</button> <button type="button" class="btn btn-default"> <i class="glyphicon glyphicon-chevron-right"></i> Right</button> <br /> <button type="button" class="btn btn-success"> <i class="glyphicon glyphicon-thumbs-up"></i> Thumbs Up</button> <button type="button" class="btn btn-labeled btn-danger"> <i class="glyphicon glyphicon-thumbs-down"></i> Thumbs Down</button> <br /> <button type="button" class="btn btn-info"> <i class="glyphicon glyphicon-refresh"></i> Refresh</button> <button type="button" class="btn btn-danger"> <i class="glyphicon glyphicon-trash"></i> Trash</button> <br /> <a class="btn btn-success" href="http://www.jquery2dotnet.com" role="button"> <i class="glyphicon glyphicon-info-sign"></i> Info Web</a> </div> </div>
.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-labeledsss {padding-top: 0;padding-bottom: 0; margin-bottom:10px;} .btn-labeled { position: relative; } .btn-labeled .glyphicon { position: absolute; z-index: 1; left: 0; top: 0; bottom: 0; }

Related: See More


Questions / Comments: