I am trying to make a gallery with the folders that I have in a directory, and for that I use php to browse them. The fact is that I am very bad, fatal, the design, and what I want to do is that each folder has 200px width and 200px high, and as they accumulate in a row, the next div goes down . I do not know if I explain myself very well. I leave the code:
<div style="display:flex; flex: wrap">
<?php foreach($listaCarpetas as $proyectos):?>
<a style="text-decoration: none; color: black;" href="mostrarProyecto.php?ruta=<?php echo $proyectos['file'];?>">
<div style="width: 200px; height: 200px; border-radius: 10%;text-align: center; margin: 20px; font-size: 40px;border: 2px solid black;">
<?php echo $proyectos['file'];?>
</div>
</a>
<?php endforeach;?>
</div>
I've tried it with display: flex; flex: wrap
but nothing ...
Thank you very much for your help in advance !!