0
Well, I’m developing a project, and eventually a bug came up, just need to fix it, tried several ways but could not fix
IMG 2: Image one shows the elements all cluttered by the screen, however, this occurs in very few resolutions, some are '1206', '910' wide, I would like to know how best to correct this, and what caused
CSS:
.container #paginacao{
margin-bottom: 50px;
}
.container #paginacao .video-figure{
display: block;
margin: auto;
margin-bottom: 30px;
}
.container #paginacao .video-figure img{
width: 100%;
float: left;
margin-bottom: 10px;
}
.container #paginacao .video-figure figcaption h4{
font-size: 1.2em;
margin-bottom: 10px;
font-weight: 800;
font-family: 'Open Sans', sans-serif;
}
.container #paginacao .video-figure figcaption p span{
text-transform: uppercase;
}
.container #paginacao .video-figure figcaption p i{
margin-right: 5px;
}
#paginacao{
float: left;
width: 100%;
}
@media (max-width: 629px){
.container #paginacao figure{
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:
<div class="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, image field repeats 20 times.
Try using the property flex : https://css-tricks.com/snippets/css/a-guide-to-flexbox/
– LuKs Sys