0
I want to display data from a table by Divs with columns of specific size for each of them, but when I load the information, it brings them all in the same column, I don’t want to use table tags to format them. Look how it’s turning out here.
echo "<div class='col-md-2'>";
echo "<div class='widget widget-default widget-item-icon'>";
echo "<div class='widget-item-left'>";
echo "<span class='fa fa-building-o'></span>";
echo "</div>";
echo "<div class='widget-data'>";
while ($row_aprt = $stmt->fetch(PDO::FETCH_ASSOC)){
extract($row_aprt);
echo "<div class='widget-int num-count'>{$num_apart}</div>";
echo "<div class='widget-title'>{$nm_apart} - {$tipo_apart}</div>";
echo "<div class='widget-subtitle'>Disponivel - {$disponivel}</div>";
}
echo "</div>";
echo "</div>";
echo "</div>";
Define a div with the Bootstrap Row class to behave the others, within this div create the others with the class col-Md-2 bringing your information
– Bruno de Sales
Actually had already put a div with a Row class, even with it is still presenting this small formatting flaw
– user2203711