Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

Bootstrap Media Object

Bootstrap Media Object

In this section we will discuss media objects in Bootstrap. These abstract object styles are used to suggest a variety of component types (such as blog comments), where we can mix images and text, with images aligned to the left or right. Media objects allow you to mix media with text using less code.

You can add either of the following two forms to your HTML markup to set up a media object:

Let's look at an example of using the .media class for media objects:



Media Object

Media heading

This is some sample text. This is some sample text. This is some sample text. This is some sample text. This is some sample text. This is some sample text. This is some sample text. This is some sample text.
Media Object

Media heading

This is some sample text. This is some sample text. This is some sample text. This is some sample text. This is some sample text. This is some sample text. This is some sample text. This is some sample text.
Media Object

Media heading

This is some sample text. This is some sample text. This is some sample text. This is some sample text. This is some sample text. This is some sample text. This is some sample text. This is some sample text.

View the example online

The above example displays as follows:

Let's look at an example of using the .media-list class for media objects:



  • Generic placeholder image

    Media heading

    This is some sample text. This is some sample text. This is some sample text. This is some sample text. This is some sample text. This is some sample text. This is some sample text. This is some sample text.

    Generic placeholder image

    Nested media heading

    This is some sample text. This is some sample text. This is some sample text. This is some sample text. This is some sample text. This is some sample text. This is some sample text. This is some sample text.
    Generic placeholder image

    Nested media heading

    This is some sample text. This is some sample text. This is some sample text. This is some sample text. This is some sample text. This is some sample text. This is some sample text. This is some sample text.
    Generic placeholder image

    Nested media heading

    This is some sample text. This is some sample text. This is some sample text. This is some sample text. This is some sample text. This is some sample text. This is some sample text. This is some sample text.
  • Generic placeholder image

    Media heading

    This is some sample text. This is some sample text. This is some sample text. This is some sample text. This is some sample text. This is some sample text. This is some sample text. This is some sample text.

View the example online

The above example displays as follows: