Colleagues.
I've taken a project now with a ready-made framework, but I'm taking a beating with the site's css. When one more room is included in this project, the divs are not aligned in 3. See:
TheHMTL/PHPcode:
while($jmSeg=mysqli_fetch_object($sqlSeg)){?><divclass="hr-corpo">
<div class="hr-container-campos">
<p class="hr-container-campos-sala">SALA <?php echo $jmSeg->sala; ?></p> <!-- SALA 01 -->
<?php
$sqlI = mysqli_query($conecta,"SELECT * FROM 'horarios' WHERE dia = 'Segunda e Quarta' and sala = '".$jmSeg->sala."' and status = '1' ORDER BY hora");
while ($horasI = mysqli_fetch_object($sqlI)) {
echo"<div class=\"hr-campos\">
<p><span class=\"hr\">".utf8_encode($horasI->hora)."</span><span class=\"hr-atividade\">".$horasI->atividade."</span><br/><span class=\"hr-professor\">Prof. ".$horasI->professor."</span></p>
</div>";
}
?>
</div>
</div>
</div>
<?php } ?>
CSS:
.hr-corpo{
width:30%; margin:0% 1.666666666666667% 4% 1.666666666666667%; background:rgba(0,0,0,0.0); min-height:10px; display:inline-block; padding:0%; float:left;}/*CORPO DA AGENDA*/
.hr-container-campos-sala{
font-size:0.7em;}