-
Notifications
You must be signed in to change notification settings - Fork 1
/
test.html
49 lines (49 loc) · 1.27 KB
/
test.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<!doctype>
<html>
<head>
<script src="lib/jquery-1.9.1.js"></script>
<script src="lib/masonry.pkgd.min.js" ></script>
<style type="text/css">
.item {
width: 25%;
background: aliceblue;
border: 1px dashed black;
border-radius: 10px;
/*padding: 10px;*/
/*box-sizing: border-box;*/
height: 100px;
}
.item.w2 {
width: 50%;
}
</style>
</head>
<body>
<div id="container">
<div class="item">ZOMG!</div>
<div class="item w2">WTF!</div>
<div class="item">BBQ!</div>
<div class="item">ZOMG!</div>
<div class="item w2">WTF!</div>
<div class="item">BBQ!</div>
<div class="item">ZOMG!</div>
<div class="item w2">WTF!</div>
<div class="item">BBQ!</div>
<div class="item">ZOMG!</div>
<div class="item w2">WTF!</div>
<div class="item">BBQ!</div>
<div class="item">ZOMG!</div>
<div class="item w2">WTF!</div>
<div class="item">BBQ!</div>
</div>
<script type="text/javascript">
var $container = $('#container');
// initialize
$container.masonry({
columnWidth: 200,
itemSelector: '.item'
});
var msnry = $container.data('masonry');
</script>
</body>
</html>