Bootstrap 3 Tutorial
The .img-rounded class adds rounded edges to an image (rounded corners are not supported in IE8):

The .img-circler class transforms the picture into a circle (IE8 does not allow rounded corners):

The .img-thumbnail class transforms the image into a thumbnail:

Images come in various sizes. The same is true for screens. Responsive images alter automatically to fit the screen size.
To create responsive images, apply the .img-responsive class to the <img> tag. The picture will then scale properly to match the parent element.
The .img-responsive class adds display: block;, max-width: 100%;, and height: auto; to the image.

You can also construct an image gallery by using Bootstrap’s grid system and the .thumbnail class.
Note: You will learn more about the Grid System later in this tutorial (how to create a layout with different amount of columns).
CodingAsk.com is designed for learning and practice. Examples may be made simpler to aid understanding. Tutorials, references, and examples are regularly checked for mistakes, but we cannot guarantee complete accuracy. By using CodingAsk.com, you agree to our terms of use, cookie, and privacy policy.
Copyright 2010-2024 by Refsnes Data. All Rights Reserved.