BootstrapMultimedia Objects (media Object)
In this chapter we will explain the multimedia objects in Bootstrap (Media Object). These abstract object styles are used to create various types of components (such as blog comments), and we can use text-to-image blending in components, which can be left-aligned or right-aligned. Media objects can be mixed with less code for media objects and text.
The lightweight, easy-to-extend nature of a media object is achieved by applying a class to a simple tag. You can add the following two forms to the HTML tag to set the media object:
- . Media: This class allows multimedia (images, video, audio) in media objects to be floated to the left or right of the content block.
- . Media-list: If you need a list, the items are part of the unordered list, and you can use that class. Available for comment lists and articles lists.
Let's take a look at the following information about the default media object. Media instance:
<! DOCTYPE html>
<meta http-equiv= "Content-type" content= "text/html; Charset=utf-8 "/>
<title>bootstrap Experience Example: Default Media Object </title>
<meta charset= "Utf-8"/>
<meta name= "viewport" content= "width=device-width,initial-scale=1.0"/>
<link rel= "stylesheet" href= "Bootstrap-3.3.5-dist/css/bootstrap.min.css"/>
<body>
<div style= "padding:20px" >
<div class= "Media" >
<a href= "#" class= "Pull-left" ></a>
<div class= "Media-body" >
<p> Here are some sample text. Here are some sample text. Here are some sample text. Here are some sample text. Here are some sample text. Here are some sample text. Here are some sample text. Here are some sample text. </p>
<div class= "Media" >
<a href= "#" class= "Pull-left" ></a>
<div class= "Media-body" >
<p> Here are some sample text. Here are some sample text. Here are some sample text. Here are some sample text. Here are some sample text. Here are some sample text. Here are some sample text. Here are some sample text. </p>
<div class= "Media" >
<a href= "#" class= "Pull-left" ></a>
<div class= "Media-body" >
<p> Here are some sample text. Here are some sample text. Here are some sample text. Here are some sample text. Here are some sample text. Here are some sample text. Here are some sample text. Here are some sample text. </p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script src= "Jquery/jquery-2.1.4.js" ></script>
<script src= "Bootstrap-3.3.5-dist/js/bootstrap.min.js" ></script>
</body>
Bootstrap Experience Example: Default Media Object