02.06.2015 Views

Bootstrap Tutorial

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>Bootstrap</strong> Media Object<br />

CHAPTER<br />

29<br />

This chapter discusses about Media object. These are abstract object styles for building various types of<br />

components (like blog comments, Tweets, etc) that feature a left- or right-aligned image alongside textual content.<br />

The goal of the media object is to make the code for developing these blocks of information drastically shorter.<br />

The goal of media objects (light markup, easy extendability) is achieved by applying classes to some simple<br />

markup. There are two forms to the media object:<br />

<br />

<br />

.media: This class allows to float a media object (images, video, audio) to the left or right of a content block.<br />

.media-list: If you are preparing a list where the items will be part of an unordered list, use class. Useful for<br />

comment threads or articles lists.<br />

Let us see an example below of default media object:<br />

<br />

<br />

<br />

<br />

<br />

Media heading<br />

This is some sample text. This is some sample text.<br />

This is some sample text. This is some sample text.<br />

This is some sample text. This is some sample text.<br />

This is some sample text. This is some sample text.<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

Media heading<br />

This is some sample text. This is some sample text.<br />

This is some sample text. This is some sample text.<br />

This is some sample text. This is some sample text.<br />

This is some sample text. This is some sample text.<br />

<br />

<br />

<br />

TUTORIALS POINT<br />

Simply Easy Learning

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!