I successfully transformed div
s into a column of tables. However, now I am looking to add some padding between the divs. When I attempt to do so like this:
<div style="float:left; width:100%;">
<?php
foreach ($datas as $rec) { ?>
<div style="float:left; width:100%; background-color: green;">
<div style="margin: 0px; float:left; width: 25%; background-color: red;"><a href="<?php echo $rec['HTTP']; ?>" target="_blank"><?php echo $rec['LINKNAME']; ?></a></div>
<div style="margin: 1px; background-color: yellow;"><?php echo $rec['DESCRIPTION']; ?></div>
</div>
<?php } ?>
</div>
due to the margin: 1px
, it ends up breaking apart. How can I resolve this issue?