Bootstrap 3 Tutorial
Bootstrap allows you to easily align media assets (such as photos or videos) to the left or right of some content. This can be used to show blog comments, tweets, and so on.
John Doe
Lorem ipsum...
John Doe
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
To build a container for media assets, add a <div> element with the .media class.
The .media-left class aligns the media object (picture) to the left, while the .media-right class aligns it to the right.
The text that should show next to the image is inserted inside a container with class=”media-body“.
In addition, you can use .media-heading for headings.
The media object can also be top, middle, or bottom oriented, using the media-top, media-middle, or media-bottom classes:
Media Top
Lorem ipsum...
Media Middle
Lorem ipsum...
Media Bottom
Lorem ipsum...
Media objects can also be nested.
CodingAsk.com is designed for learning and practice. Examples may be made simpler to aid understanding. Tutorials, references, and examples are regularly checked for mistakes, but we cannot guarantee complete accuracy. By using CodingAsk.com, you agree to our terms of use, cookie, and privacy policy.
Copyright 2010-2024 by Refsnes Data. All Rights Reserved.