Created
February 26, 2012 16:30
-
-
Save coreyweb/1917503 to your computer and use it in GitHub Desktop.
Better thumbnail approach CSS
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
<!-- demo: http://sandbox.squidplex.com/new/bootstrap/media.html --> | |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" | |
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> | |
<title>Better Thumbnail Layouts</title> | |
<style type="text/css" media="screen"> | |
.media, .bd {overflow:hidden; _overflow:visible; *overflow:visible; zoom:1;} | |
.media .img {float:left; margin-right: 10px;} | |
.media .img img {display:block;} | |
.media .imgExt {float:right; margin-left: 10px;} | |
</style> | |
</head> | |
<body> | |
<div style="width: 590px; margin: 0 auto;"> | |
<div class="media attribution"> | |
<a href="http://twitter.com/stubbornella" class="img"> | |
<img src="http://magstage.squidoo.com/files/2012/01/shuttle2-150x150.png" alt="me" style="width: 100px;" /> | |
</a> | |
<div class="bd"> | |
There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected | |
humour, or randomised words which don't look even slightly believable. If you are going to use a passage of Lorem Ipsum, you need to | |
be sure there isn't anything embarrassing hidden in the middle of text. All the Lorem Ipsum generators on the Internet tend to repeat | |
predefined chunks as necessary, making this the first true generator on the Internet. It uses a dictionary of over 200 Latin words, | |
combined with a handful of model sentence structures, to generate Lorem Ipsum which looks reasonable. The generated Lorem Ipsum is | |
therefore always free from repetition, injected humour, or non-characteristic words etc. | |
</div> | |
</div> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment