Created
May 10, 2011 13:44
-
-
Save vlaube/964496 to your computer and use it in GitHub Desktop.
grid
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
<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