There is a grid with pictures in 4 columns centered vertically and horizontally. Question: how to make it so that at resolutions xs <576px they xs <576px down 2 by bootstrap and 2 in a xs <576px and horizontal xs <576px do not appear, and keep the current cross-browser compatibility? Feedl
.centered > .row { display: table; width: 100%; } .centered > .row > div { display: table-cell; float: none; text-align: center; vertical-align: middle; } <link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet" /> <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script> <div class="container centered"> <div class="row"> <div class="col-xs-3"> <img src="http://placehold.it/70x81"> </div> <div class="col-xs-3"> <img src="http://placehold.it/100x33"> </div> <div class="col-xs-3"> <img src="http://placehold.it/100x19"> </div> <div class="col-xs-3"> <img src="http://placehold.it/80x72"> </div> </div> <div class="row"> <div class="col-xs-3"> <img src="http://placehold.it/80x72"> </div> <div class="col-xs-3"> <img src="http://placehold.it/70x81"> </div> <div class="col-xs-3"> <img src="http://placehold.it/100x33"> </div> <div class="col-xs-3"> <img src="http://placehold.it/100x19"> </div> </div> </div>