"Circle Button"
Bootstrap 3.0.0 Snippet by diglog

<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 ----------> <button type="button" class="btn btn-default btn-circle"><i class="glyphicon glyphicon-ok"></i></button> <button type="button" class="btn btn-primary btn-circle"><i class="glyphicon glyphicon-list"></i></button> <button type="button" class="btn btn-success btn-circle"><i class="glyphicon glyphicon-link"></i></button> <button type="button" class="btn btn-info btn-circle"><i class="glyphicon glyphicon-ok"></i></button> <button type="button" class="btn btn-warning btn-circle"><i class="glyphicon glyphicon-remove"></i></button> <button type="button" class="btn btn-danger btn-circle"><i class="glyphicon glyphicon-heart"></i></button> <h2>lg</h2> <button type="button" class="btn btn-default btn-circle btn-lg"><i class="glyphicon glyphicon-ok"></i></button> <button type="button" class="btn btn-primary btn-circle btn-lg"><i class="glyphicon glyphicon-list"></i></button> <button type="button" class="btn btn-success btn-circle btn-lg"><i class="glyphicon glyphicon-link"></i></button> <button type="button" class="btn btn-info btn-circle btn-lg"><i class="glyphicon glyphicon-ok"></i></button> <button type="button" class="btn btn-warning btn-circle btn-lg"><i class="glyphicon glyphicon-remove"></i></button> <button type="button" class="btn btn-danger btn-circle btn-lg"><i class="glyphicon glyphicon-heart"></i></button> <h2>xl</h2> <button type="button" class="btn btn-default btn-circle btn-xl"><i class="glyphicon glyphicon-ok"></i></button> <button type="button" class="btn btn-primary btn-circle btn-xl"><i class="glyphicon glyphicon-list"></i></button> <button type="button" class="btn btn-success btn-circle btn-xl"><i class="glyphicon glyphicon-link"></i></button> <button type="button" class="btn btn-info btn-circle btn-xl"><i class="glyphicon glyphicon-ok"></i></button> <button type="button" class="btn btn-warning btn-circle btn-xl"><i class="glyphicon glyphicon-remove"></i></button> <button type="button" class="btn btn-danger btn-circle btn-xl"><i class="glyphicon glyphicon-heart"></i></button>
body{margin:40px;} .btn-circle { width: 30px; height: 30px; text-align: center; padding: 6px 0; font-size: 12px; line-height: 1.428571429; border-radius: 15px; } .btn-circle.btn-lg { width: 50px; height: 50px; padding: 10px 16px; font-size: 18px; line-height: 1.33; border-radius: 25px; } .btn-circle.btn-xl { width: 70px; height: 70px; padding: 10px 16px; font-size: 24px; line-height: 1.33; border-radius: 35px; }

Related: See More


Questions / Comments:

Can anyone tell me how to make glyphicon which works as a button

Arun Sen () - 7 years ago - Reply 0


Nice one thanks...

sandip patil () - 8 years ago - Reply 0


god job :D

Asep Indra Kurniawan () - 8 years ago - Reply 0


Sweet. Thank you :)

th3one () - 9 years ago - Reply 0


ful

Omar Albadre () - 9 years ago - Reply 0


use this
outline: 0px !important
in your .btn-circle

Leo () - 9 years ago - Reply 0


Ah! Sorry i did mistake.

Now Its working fine.

tom () - 10 years ago - Reply 0


Its does not work on 3.1.1 :(

tom () - 10 years ago - Reply 0


love these!

Teri Yeri () - 11 years ago - Reply 0


You could make this code leaner and more flexible by just making btn-circle have a border-radius of 50%.

mindctrl () - 11 years ago - Reply 0


Super Awesome..

Hardik Sondagar () - 11 years ago - Reply 0