Abstract object styles for building various types of components (like blog comments, Tweets, etc) that feature a left or right aligned image alongside textual content.
The default media allow to float a media object (images, video, audio) to the left or right of a content block.
<div class="media"> <a class="cover" href="#"> <img alt="..." src="..."> </a> <div class="desc"> <h4 class="heading">Media heading</h4> ... </div> </div> <div class="media ext"> <a class="cover" href="#"> <img alt="..." src="..."> </a> <div class="desc"> <h4 class="heading">Media heading</h4> ... </div> </div>
<div class="media invert"> <a class="cover" href="#"> <img alt="..." src="..."> </a> <div class="desc"> <h4 class="heading">Media heading</h4> ... </div> </div>
With a bit of extra markup, you can use media inside list (useful for comment threads or articles lists).
Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin commodo. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis.
<ul class="mediae"> <li class="media"> <a class="cover" href="#"> <img src="..." alt="..."> </a> <div class="desc"> <h4 class="heading">Media heading</h4> ... </div> </li> </ul>