Bootstrap | figure class with Examples
is used when one needs to display a piece of content, generally images with an optional caption. The figure class in Bootstrap is used to add styling to the default figure elements.
- The base .figure class is used to indicate a figure element.
- The .figure-img is used to indicate the image used in the figure element.
- The .figure-caption may be used to display a caption below the figure.
: Using the .figure
class with a sample image.
: Using the .figure-caption
class to show a caption below the image. This class is used with the <figcaption>
Share your thoughts in the comments
Please Login to comment...