I'm doing an area of the site where I try to dynamically align the images that will come from the possible "clients", the problem that is happening is that I do not know how to break the line because I need to get 3 images side by side, and after this third image the fourth will come below the first. Follow my code.
Index:
<div id="middle">
<div class="row-fluid" id="conteudo">
<ul>
<li class="min"><div id="miniaturas">
<div id="minCli">
<img height="157px" src="../imagens/mais.png" id="mais" href=""/>
<img height="157px" src="../imagens/ronaldo.jpeg" id="imgFundo" href=""/>
</div>
</div></li>
<li class="min"><div id="miniaturas">
<div id="minCli">
<img height="157px" src="../imagens/mais.png" id="mais" href=""/>
<img height="157px" src="../imagens/ronaldo.jpeg" id="imgFundo" href=""/>
</div>
</div></li>
<li class="min"><div id="miniaturas">
<div id="minCli">
<img height="157px" src="../imagens/mais.png" id="mais" href=""/>
<img height="157px" src="../imagens/ronaldo.jpeg" id="imgFundo" href=""/>
</div>
</div></li>
</ul>
</div>
</div>
CSS:
#minCli { width: 229px; height: 171px; background-color: white; }
#miniaturas { margin-left: 15vw; margin-top: 5vh; }
#mais { margin-left: -27px; z-index: 2; width: 50px; height: 50px; margin-top: 6vh; position: absolute; }
img#imgFundo { margin-left: -115px;
position: absolute;
width: 229px;
height: 171px;
opacity: 0.75;
-moz-opacity: 0.75;
filter: alpha(opacity=75);
-webkit-filter: opacity(0.75);
filter: gray;
-webkit-filter: grayscale(100%);
image-rendering: auto;
z-index: 1;
}
img#imgFundo:hover {
opacity:1;
-moz-opacity: 1;
filter: alpha(opacity=100);
-webkit-filter: opacity(1);
filter: none; /* Firefox 10+ */
-webkit-filter: grayscale(0%); /* Chrome 19+ & Safari 6+ */
image-rendering: auto;
}
.min { display: inline-block; }