"Metro Test"
Bootstrap 3.3.0 Snippet by brenot

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
<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script>
<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
<!------ Include the above in your HEAD tag ---------->
<div id="content">
<div class="content-inner">
<a href="#" am-metro-box="row=1 col=1 lilas1">
<div>
<span>conteudo</span>
</div>
</a>
<a href="#" am-metro-box="row=1 col=1 azul1">
<div>
<span>conteudo</span>
</div>
</a>
<a href="#" am-metro-box="row=1 col=1 verde1">
<div>
<span>conteudo</span>
</div>
</a>
<a href="#" am-metro-box="row=1 col=2 branco">
<div>
<span>col=1 and row=2</span>
</div>
</a>
<a href="#" am-metro-box="row=1 col=1 verde2">
<div>
<span>conteudo</span>
</div>
</a>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
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
body {
margin: 0;
}
#content {
width: 100em;
margin: auto;
/*display: box; // fallback for older browsers
display: flexbox; // fallback for IE10
display: flex;
flex-wrap: wrap;
justify-content: space-between;
align-items: flex-start;*/
}
#content:after {
content: "";
clear: both;
display: block;
}
#content .content-inner {
margin-left: -2em;
}
[am-metro-box] {
overflow: hidden;
font-family: Verdana;
background-color: #ECF0F1;
width: 14.66667em;
padding-bottom: 14.66667em;
position: relative;
margin-bottom: 2em;
margin-left: 2em;
transition: all .3s linear;
float: left;
}
[am-metro-box] div {
position: absolute;
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments: