"Glyphicon half"
Bootstrap 3.3.0 Snippet by kusch

<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.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"> <div class="bs-glyphicons"> <span class="bs-glyphicons-list"> <span class="glyphicon glyphicon-star font"></span> <span class="glyphicon glyphicon-star font half"></span> </span> </div> </div> <div class="row"> <div class="bs-glyphicons"> <span class="bs-glyphicons-list"> <span class="glyphicon glyphicon-heart font"></span> <span class="glyphicon glyphicon-heart font half-heart"></span> </span> </div> </div> </div>
.half { position:relative; } .font{ font-size:6em; } .half:before { content: "\e006"; /* put here default icon code*/ width: 47%; display: block; position: absolute; overflow: hidden; } .half:after { content: "\e007"; /* put here icon-empty code*/ } .half-heart:before { content: "\e005"; /* put here default icon code*/ width: 57%; display: block; position: absolute; overflow: hidden; } .half-heart:after { content: "\e143"; /* put here icon-empty code*/ }

Related: See More


Questions / Comments: