Bootstrap provides classes that can be used when working with the <img> element. Specifically, there are classes for responsive images, and classes for image shapes.
Image Classes<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Tutor Joes</title> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css"> <!--<link rel="stylesheet" href="css/bootstrap.min.css">--> <style> body { background-color: brown; color: wheat; } img { margin: 15px; } </style> </head> <body> <div class="container"> <h3>Bootstrap Images</h3> <div class="row"> <div class="col-md-6"> <img class="img-responsive" src="dog.jpg" alt="Dog image"> <img class="img-responsive img-rounded" src="dog.jpg" alt="Dog image"> <img class="img-responsive img-circle" src="dog.jpg" alt="Dog image"> <img class="img-responsive img-thumbnail" src="dog.jpg" alt="Dog image"> </div> </div> </div> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script> <!--<script src="js/jquery.min.js"></script>--> <!--<script src="js/bootstrap.min.js"></script>--> </body> </html>
Learn All in Tamil © Designed & Developed By Tutor Joes | Privacy Policy | Terms & Conditions