Skip to content

Instantly share code, notes, and snippets.

@vlaube
Created May 10, 2011 13:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vlaube/964496 to your computer and use it in GitHub Desktop.
Save vlaube/964496 to your computer and use it in GitHub Desktop.
grid
<html>
<head>
<style type="text/css">
body{
font-family: helvetica;
}
div {
display:block;
}
.movies{
margin: 40px 0 0 40px;
}
.movie{
float: left;
margin-right: 20px;
margin-bottom: 30px;
position: relative;
width: 110px;
height: 180px;
}
.movie_name{
font-size: 12px;
margin-top: 3px;
text-align: center;
}
</style>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js"></script>
<script type="text/javascript">
$(function(){
var i = 0;
while(i <= 5){$(".movie").clone().appendTo(".movies"); i++;}
});
</script>
</head>
<body>
<div class="movies">
<div class="movie">
<div class="art"><img src="thumb.png" /></div>
<div class="movie_name">Teste de Nome</div>
</div>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment