Created
April 12, 2013 04:47
-
-
Save grevory/5369438 to your computer and use it in GitHub Desktop.
Simple markup for adding captions and credits to images with Twitter Bootstrap.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style> | |
.thumbnail.with-caption { | |
display: inline-block; | |
background: #f5f5f5; | |
} | |
.thumbnail.with-caption p { | |
margin: 0; | |
padding-top: 0.5em; | |
} | |
.thumbnail.with-caption small:before { | |
content: '\2014 \00A0'; | |
} | |
.thumbnail.with-caption small { | |
width: 100%; | |
text-align: right; | |
display: inline-block; | |
color: #999; | |
} | |
</style> | |
<div class="thumbnail with-caption"> | |
<img src="http://img.youtube.com/vi/IJNR2EpS0jw/0.jpg" width="320"> | |
<p>Dumb ways to die<small>Metro</small></p> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment