0
When I duplicate this code, it appears vertically aligned, I would like to align this code horizontally
<?php
for($k=0;$k<count($items);$k++)
{
$item = $items[$k];
$expire_key = (isset($from_recv) ? $from_recv : 0).'|'.ltrim($item['id'],0);
$barcode = $item['id'];
$text = $item['name'];
if(isset($items_expire[$expire_key]) && $items_expire[$expire_key])
{
$text.= " (".lang('common_expire_date').' '.$items_expire[$expire_key].')';
}
elseif (isset($from_recv))
{
$text.= " (RECV $from_recv)";
}
$page_break_after = ($k == count($items) -1) ? 'auto' : 'always';
echo "<div class='barcode-label' style='page-break-after: $page_break_after'>".$company."<br /><img style='vertical-align:baseline;'src='".site_url('barcode').'?barcode='.rawurlencode($barcode).'&text='.rawurlencode($barcode)."&scale=$scale' /><br />".$text."</div>";
}
?>
Hello Matthew. Your question is not related to PHP, but to HTML and CSS generated. I edited the tags of your question. To have an answer more easily I suggest posting the HTML generated by this code.
– gmsantos
What is the difference to this question? https://answall.com/q/227584/5878
– Woss
It also seems to me that it is a repeated question, just worded differently.
– Isac
It would be nice if you put at least one print of the results screen to get a better sense, trying to solve so with the naked eye becomes difficult to solve the issue.
– Rafael Andrade