Skip to content
Related Articles
Get the best out of our app
GeeksforGeeks App
Open App

Related Articles

How to get circular buttons in bootstrap 4 ?

Improve Article
Save Article
Like Article
Improve Article
Save Article
Like Article

It is an open source toolkit for developing with the HTML, CSS, and JS. It includes several types of buttons, styles, fonts each of them serving its own semantic purpose which is predefined, with a few extras thrown for more control. You can use Bootstrap custom button styles to create your buttons and more with support for multiple sizes, states, and more.
Bootstrap does not provide any circular buttons by default. If we want to include circular buttons in a web page then with the help of Bootstrap 4 and a little bit of CSS, you can create your own circular buttons for your web page or application.


<!DOCTYPE html>
        How to get circular buttons
        in bootstrap 4 ?
    <meta charset="utf-8"
    <meta name="viewport" content="width=device-width, initial-scale=1"
    <link rel="stylesheet" href
    <script src
    <script src
    <script src
    <style type="text/css">
        h1 {
        .xyz {
            background-size: auto;
            text-align: center;
            padding-top: 100px;
        .btn-circle.btn-sm {
            width: 30px;
            height: 30px;
            padding: 6px 0px;
            border-radius: 15px;
            font-size: 8px;
            text-align: center;
        .btn-circle.btn-md {
            width: 50px;
            height: 50px;
            padding: 7px 10px;
            border-radius: 25px;
            font-size: 10px;
            text-align: center;
        .btn-circle.btn-xl {
            width: 70px;
            height: 70px;
            padding: 10px 16px;
            border-radius: 35px;
            font-size: 12px;
            text-align: center;
<body class="xyz">
    <h4>Normal Circle Buttons</h4>
    <button type="button" class="btn btn-primary btn-circle btn-sm">Blue</button>
    <button type="button" class="btn btn-secondary btn-circle btn-sm">Gray</button>
    <button type="button" class="btn btn-success btn-circle btn-sm">Green</button>
    <button type="button" class="btn btn-danger btn-circle btn-sm">Red</button>
    <button type="button" class="btn btn-warning btn-circle btn-sm">Yellow</button>
    <button type="button" class="btn btn-light btn-circle btn-sm">White</button>
    <button type="button" class="btn btn-dark btn-circle btn-sm">Black</button>
    <h4>Large Circle Buttons</h4>
    <button type="button" class="btn btn-primary btn-circle btn-xl">Blue</button>
    <button type="button" class="btn btn-secondary btn-circle btn-xl">Gray</button>
    <button type="button" class="btn btn-success btn-circle btn-xl">Green</button>
    <button type="button" class="btn btn-danger btn-circle btn-xl">Red</button>
    <button type="button" class="btn btn-warning btn-circle btn-xl">Yellow</button>
    <button type="button" class="btn btn-light btn-circle btn-xl">White</button>
    <button type="button" class="btn btn-dark btn-circle btn-xl">Black</button>

Output:With the help of the following code we can easily add circular buttons using Bootstrap 4. Following is an image of the various kinds of circular buttons obtained.

My Personal Notes arrow_drop_up
Last Updated : 08 Jul, 2019
Like Article
Save Article
Similar Reads
Related Tutorials