Bootstrap 4 .rounded-circle class

To create a rounded circle with Bootstrap, use the rounded-circle class.

Add the rounded-circle class in the <div>

<div class="test rounded-circle">

Above, we also have a test class, which is a CSS class to style the circle −

.test {
  width: 270px;
  height: 320px;
  background-color: yellow;

You can try to run the following code to implement the rounded-circle class in Bootstrap 4 −


Live Demo

<!DOCTYPE html>
   <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: 350px;
      height: 320px;
      background-color: yellow;
  <div class="container">
    <p>We have a circle below:</p>
    <div class="test rounded-circle"></div>