"Metro Test"
Bootstrap 3.3.0 Snippet by brenot

<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> <a href="#" am-metro-box="row=1 col=1 verde3"> <div> <span>conteudo</span> </div> </a> <a href="#" am-metro-box="row=1 col=1 azul2"> <div> <span>col=1 and row=1</span> </div> </a> <a href="#" am-metro-box="row=1 col=1 verde1"> <div> <span>col=1 and row=1</span> </div> </a> <a href="#" am-metro-box="row=1 col=1 lilas1"> <div> <span>col=1 and row=1</span> </div> </a> <a href="#" am-metro-box="row=1 col=2 amarelo2"> <div> <span>col=1 and row=2</span> </div> </a> <a href="#" am-metro-box="row=2 col=2 azul2"> <div> <span>col=2 and row=2</span> </div> </a> <a href="#" am-metro-box="row=1 col=1 verde3"> <div> <span>col=1 and row=1</span> </div> </a> <a href="#" am-metro-box="row=1 col=1 amarelo1"> <div> <span>col=1 and row=1</span> </div> </a> <a href="#" am-metro-box="row=1 col=1 vermelho1"> <div> <span>col=1 and row=1</span> </div> </a> <a href="#" am-metro-box="row=1 col=1 amarelo1"> <div> <span>col=1 and row=1</span> </div> </a> <a href="#" am-metro-box="row=1 col=2 azul3"> <div> <span>col=1 and row=2</span> </div> </a> <a href="#" am-metro-box="row=1 col=1 laranja1"> <div> <span>col=1 and row=1</span> </div> </a> <a href="#" am-metro-box="row=1 col=1 azul1"> <div> <span>col=1 and row=1</span> </div> </a> </div> </div>
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; display: box; display: flexbox; display: flex; align-items: center; justify-content: center; top: 0; left: 0; bottom: 0; right: 0; } [am-metro-box~="row=2"] { padding-bottom: 31.33333em; } [am-metro-box~="col=2"] { width: 31.33333em; } [am-metro-box~="col=3"] { width: 48em; } [am-metro-box~="col=4"] { width: 64.66667em; } [am-metro-box]:hover { background-color: #f2f5f5; } [am-metro-box~="blue"] { background-color: #1488C8; } [am-metro-box~="blue"]:hover { background-color: #26a4e9; } [am-metro-box~="yellow"] { background-color: #F7E041; } [am-metro-box~="yellow"]:hover { background-color: #f9e872; } [am-metro-box] div span { color: #32252F; } [am-metro-box~="blue"] div span { color: #f2f2f2; } [am-metro-box~="yellow"] div span { color: #4d4d4d; } [am-metro-box~="branco"] { background: #ffffff; } [am-metro-box~="azul1"] { background: #0094DB; } [am-metro-box~="azul2"] { background: #5A8BC9; } [am-metro-box~="azul3"] { background: #0060AE; } [am-metro-box~="verde1"] { background: #91CE18; } [am-metro-box~="verde2"] { background: #A6CE39; } [am-metro-box~="verde3"] { background: #00A648; } [am-metro-box~="verde4"] { background: #7DC242; } [am-metro-box~="amarelo1"] { background: #FFCA00; } [am-metro-box~="amarelo2"] { background: #FFCB05; } [am-metro-box~="laranja1"] { background: #F58220; } [am-metro-box~="vermelho1"] { background: #FF141E; } [am-metro-box~="lilas1"] { background: #BC1C91; }

Related: See More


Questions / Comments: