Img-circle Bootstrap class


Use the img-circle Bootstrap class to style your image and make it completely round.

You can try to run the following code to implement the img-circle class

Example

Live Demo

<!DOCTYPE html>
<html>
   <head>
      <title>Bootstrap Images</title>
      <link href = "/bootstrap/css/bootstrap.min.css" rel = "stylesheet">
      <script src = "/scripts/jquery.min.js"></script>
      <script src = "/bootstrap/js/bootstrap.min.js"></script>
   </head>
   <body>
      <p>Styling images with Bootstrap</p>
      <h1>Original Image</h1>
      <img src = "https://www.tutorialspoint.com/videotutorials/images/numerical_ability_home.jpg">
      <h1>Image with Rounded Corners</h1>
      <img src = "https://www.tutorialspoint.com/videotutorials/images/numerical_ability_home.jpg" class = "img-circle">
   </body>
</html>

Lakshmi Srinivas
Lakshmi Srinivas

Programmer / Analyst / Technician

Updated on: 12-Jun-2020

443 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements