I managed to create div
s to act like a column of tables. However, now I want to padding between divs. If I do something 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>
because of margin: 1px
it falls apart. How to fix that?