Skip to content
Advertisement

Showing 4 items at each row from MySQL table data inside HTML

I am working on a web-app that should show items from a MySQL database.

This is my current code:

JavaScript

What I need is to show 4 items on each row.

How can I insert a new row of items every 4 items?

Advertisement

Answer

if you are using Bootstrap 4, there is a class named .row and inside it, you put your items in a div with .col class name, see:

JavaScript

learn more about bootstrap 4 grid system here

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement