Form the element as a circle in Bootstrap

BootstrapWeb DevelopmentCSS Framework

To form an element as a circle, use the .rounded-circle class in Bootstrap.

It is easy to implement it −

<div class="test rounded-circle"></div>

Let us see an example to create a circle in Bootstrap −


Live Demo

<!DOCTYPE html>
<html lang="en">
    <title>Bootstrap Example</title>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" href="">
    <script src=""></script>
    <script src=""></script>
    .test {
      width: 300px;
      height: 300px;
      background-color: orange;
  <div class="container">
    <p>We have a circle below:</p>
    <div class="test rounded-circle"></div>

Updated on 17-Jun-2020 11:39:43