I have a project going on where we are able to create a product, which is loaded to the front page in PHP.  

However, if there are 5 products, then it won't create a new line. What should happen if there are 5 products is 2 lines of 4 each should be displayed.

```
<section class="ICO">
    <div class="one-fourth-gridtable">
        <table class="grid table">
            <?php
            while ($subject = mysqli_fetch_assoc($subject_set)) {
                $imagenavn = $subject['navn'];
                $sql = "SELECT * FROM product_images WHERE image_name = '$imagenavn'";
                $sth = $db->query($sql);
                $result = mysqli_fetch_array($sth);
                ?>
                <td>
                    <div style="border: 1px solid black; border-radius:2000px;">
                        <img src="data:image/jpeg;base64,<?= base64_encode($result['image']); ?>" />
                    </div>
                    <a class="action" href="<?= url_for('../show.php?id=' . h(u($subject['id']))); ?>"><?php echo h($subject['navn']); ?></a>
                </td>      
            <?php } ?>
        </table>
    </div>
</section>

```

I tried to style the table with CSS:

```
table {
    background-color: #6991ac;
    width: 100%;
    text-align: center;
    display: inline-table;
    margin-top: -5%;
}
.ICO {
    max-width: 1100px;
    margin: 0 auto;
}
.one-fourth-gridtable {
    width: 100%;
}

```