Well, I'm developing a project, and I ended up with a bug, I just need to fix it, tried it in different ways, but I could not fix it.
IMG2: Theimageoneshowstheelementsallmessedupbythescreen,however,thisoccursinveryfewresolutions,someare'1206','910'wide,Iwouldliketoknowhowtofixthis,andwhatcaused
CSS:
.container#paginacao{margin-bottom:50px;}.container#paginacao.video-figure{display:block;margin:auto;margin-bottom:30px;}.container#paginacao.video-figureimg{width:100%;float:left;margin-bottom:10px;}.container#paginacao.video-figurefigcaptionh4{font-size:1.2em;margin-bottom:10px;font-weight:800;font-family:'OpenSans',sans-serif;}.container#paginacao.video-figurefigcaptionpspan{text-transform:uppercase;}.container#paginacao.video-figurefigcaptionpi{margin-right:5px;}#paginacao{float:left;width:100%;}@media(max-width:629px){.container#paginacaofigure{width:100%;max-width:460px;}}@media(min-width:630px){.container#paginacao.video-figure{float:left;display:inline-block;width:47.382716049382715%;}.container#paginacao.video-figure:nth-child(2n){float:right;}}@media(min-width:830px){.container#paginacao.video-figure:nth-child(2n){float:left;}.container#paginacao.video-figure{margin-right:2.7538726333907055%;width:31.497418244406195%;}.container#paginacao.video-figure:nth-child(3n){margin-right:0;}}@media(min-width:1024px){.container#paginacao.video-figure{width:23.325892857142858%;margin-right:2.232142857142857%;}.container#paginacao.video-figure:nth-child(3n){margin-right:2.232142857142857%;}.container#paginacao.video-figure:nth-child(4n){margin-right:0%;}}
HTML:
<divclass="container">
<!-- Miniaturas dos Vídeos -->
<div id="paginacao">
<figure class="video-figure">
<img src="img/hqdefault.jpg">
<figcaption>
<h4>CAIXA DE EMAIL CHEIA</h4>
<p><span>Palavra - </span><i class="fa fa-calendar" aria-hidden="true"></i> 10 de Maio de 2015</p>
</figcaption>
</figure>
...
</div>
</div>
* HTML BASE, the image field repeats 20 times.