I have a simple problem with Bootstrap v4.0.0-alpha.5.
I search the Database with information. It aligns side by side but in some cases a line is skipped, and only one item remains for the bottom line.
<div class="row">
<div class="col-md-12">
<h2 style="text-align:left; color:white; margin:-top:1%;">Ação/Aventura</h2>
<?php
require 'conexao.php';
$consulta = $PDO->query("SELECT * FROM filmes WHERE categoria1 = 'acaoaventura' ORDER BY id ASC;");
while ($linha = $consulta->fetch(PDO::FETCH_ASSOC)) { ?>
<div class="col-md-2" style="margin:0;margin-bottom:3%;margin-top:2%;padding:0.1%;">
<div class="col-md-12" style="margin:0;padding:0;">
<a href="filme.php?id=<?php echo "$linha[id]";?>">
<img src="<?php echo "$linha[fotodacapa]"; ?>" class="img-fluid">
<p style="color:yellow; text-align:center; margin:0; padding:0;"><?php echo "$linha[nome]"; ?></p>
<div class="col-md-6">
<p style="color:white; text-align:center; margin:0; padding:0;">16 visitas</p></a>
</div>
<div class="col-md-6">
<a class="venobox_custom" data-type="youtube" href="https://youtu.be/<?php echo "$linha[trailer]"; ?>?autoplay=1"><p style="color:white; text-align:center; margin:0; padding:0;"><i class="fa fa-film" aria-hidden="true"></i> Trailer</p></a>
</div>
</div>
</div>
<?php } ?>
</div>
</div>
In this code snippet, I search to show what comes from the database, but I get the following result:
Ihavetriedtochangesomeitemsofplace,buttonoavail.Inanotherwork,Imanagedtogetthe"container", something not recommended, but it worked for me. This time, it did not work.
Any ideas from friends?
Thanks in advance!
Note: Do not look into the Div settings, as I am still testing, I did not organize the classes.