ShapeYourPath
(current)
Run Code
Live Code Editor- Bootstrap5 Circular Image Shape
Source Code
<!doctype html> <html lang="en"> <head> <!-- Required meta tags --> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content=""> <!-- Bootstrap CSS --> <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/css/bootstrap.min.css" rel="stylesheet"> <title>Bootstrap 5 Circular Image Shape</title> </head> <body> <h1 class="text-center">Bootstrap 5 Circular Image Shape</h1> <p class="text-justify text-center"> In this example, you will learn how to create Bootstrap 5 circular images with the help of the .rounded-circle class. To make it responsive, use the .img-fluid class. </p> <div class="container text-center"> <img src="https://picsum.photos/200/200" alt="Rounded Image" class="rounded-circle img-fluid"> </div> <!--/container--> <!-- Option 1: Bootstrap Bundle with Popper --> <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/js/bootstrap.bundle.min.js"></script> </body> </html>
Output :
Running