Bs Media Objects
Bootstrap Media Objects
Media Objects
Bootstrap provides an slow means to align media objects (like images or videos) to the left or to the correct of about content. This tin hold upwards used to display weblog comments, tweets in addition to and then on:John Doe Posted on Feb 19, 2016
Lorem ipsum dolor sit down amet, consectetur adipiscing elit, sed practice eiusmod tempor incididunt ut labore et dolore magna aliqua.Jane Doe Posted on Feb 20, 2016
Lorem ipsum dolor sit down amet, consectetur adipiscing elit, sed practice eiusmod tempor incididunt ut labore et dolore magna aliqua.Alicia Keyes Posted on Feb 25, 2016
Lorem ipsum dolor sit down amet, consectetur adipiscing elit, sed practice eiusmod tempor incididunt ut labore et dolore magna aliqua. Nulla vel metus scelerisque ante sollicitudin commodo.Basic Media Object
John Doe
Lorem ipsum dolor sit down amet, consectetur adipiscing elit, sed practice eiusmod tempor incididunt ut labore et dolore magna aliqua.John Doe
Lorem ipsum dolor sit down amet, consectetur adipiscing elit, sed practice eiusmod tempor incididunt ut labore et dolore magna aliqua.Example
<!-- Left-aligned -->
<div class="media">
<div class="media-left">
<img src="img_avatar1.png" class="media-object" style="width:60px">
</div>
<div class="media-body">
<h4 class="media-heading">John Doe</h4>
<p>Lorem ipsum...</p>
</div>
</div>
<!-- Right-aligned -->
<div class="media">
<div class="media-body">
<h4 class="media-heading">John Doe</h4>
<p>Lorem ipsum dolor sit down amet, consectetur adipiscing elit, sed practice eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>
</div>
<div class="media-right">
<img src="img_avatar1.png" class="media-object" style="width:60px">
</div>
</div>
Example explained
Use a <div> chemical cistron amongst the.media
course of teaching to practice a container for media objects.Use the
.media-left
course of teaching to align the media object (image) to the left, or the .media-right
course of teaching to align it to the right.Text that should seem side yesteryear side to the image, is placed within a container amongst class="
media-body
".Additionally, y'all tin purpose
.media-heading
for headings.Top, Middle or Bottom Alignment
The media object tin too hold upwards top, middle or bottom aligned amongst themedia-top
, media-middle
or media-bottom
class:Media Top
Lorem ipsum dolor sit down amet, consectetur adipiscing elit, sed practice eiusmod tempor incididunt ut labore et dolore magna aliqua.Lorem ipsum dolor sit down amet, consectetur adipiscing elit, sed practice eiusmod tempor incididunt ut labore et dolore magna aliqua.
Media Middle
Lorem ipsum dolor sit down amet, consectetur adipiscing elit, sed practice eiusmod tempor incididunt ut labore et dolore magna aliqua.Lorem ipsum dolor sit down amet, consectetur adipiscing elit, sed practice eiusmod tempor incididunt ut labore et dolore magna aliqua.
Media Bottom
Lorem ipsum dolor sit down amet, consectetur adipiscing elit, sed practice eiusmod tempor incididunt ut labore et dolore magna aliqua.Lorem ipsum dolor sit down amet, consectetur adipiscing elit, sed practice eiusmod tempor incididunt ut labore et dolore magna aliqua.
Example
<!-- Media meridian -->
<div class="media">
<div class="media-left media-top">
<img src="img_avatar1.png" class="media-object" style="width:60px">
</div>
<div class="media-body">
<h4 class="media-heading">Media Top</h4>
<p>Lorem ipsum...</p>
</div>
</div>
<!-- Media middle -->
<div class="media">
<div class="media-left media-middle">
<img src="img_avatar1.png" class="media-object" style="width:60px">
</div>
<div class="media-body">
<h4 class="media-heading">Media Middle</h4>
<p>Lorem ipsum...</p>
</div>
</div>
<!-- Media bottom -->
<div class="media">
<div class="media-left media-bottom">
<img src="img_avatar1.png" class="media-object" style="width:60px">
</div>
<div class="media-body">
<h4 class="media-heading">Media Bottom</h4>
<p>Lorem ipsum...</p>
</div>
</div>
Comments
Post a Comment