Hello,
i am trying to generate labels from the option Generate Letter by selecting 20 accounts. I have created a pdf template for that but the problem is the label is coming in next line but i want it to adjacent of first.
I tried styling by float:left; but no use.
Have a look at my code
$accounts_name
$accounts_new_billing_street_c
$accounts_new_billing_city_c $accounts_new_billing_postalcode_c
$accounts_country_c ($accounts_industry)
$accounts_phone_office,$accounts_phone_alternate
$accounts_department_account_c
Please see the attached images. the wrong image shows the current output but the right images shows the desired outpout.
Please help i ts urgent for me
I am not sure how you are doing this.
You may try adding a table.
The following is your same code with the table and the label duplicated as in your example.
<table>
<tr>
<td>
<p style="float: left; padding-bottom: 20px; width: 300px; ; margin-top: 0px; border-bottom: 1px dashed #ccc;"><strong><span style="font-family: verdana, geneva; color: #0000ff; font-size: 9pt; text-transform: uppercase;">$accounts_name</span></strong><br /> <span style="font-family: verdana, geneva; font-size: xx-small; text-transform: uppercase;"><strong>$accounts_new_billing_street_c</strong></span><br /> <span style="text-decoration: underline; color: #ff0000;"><span style="font-family: verdana, geneva; font-size: 14px;"><strong><span style="font-size: 9pt;">$accounts_new_billing_city_c $accounts_new_billing_postalcode_c</span></strong></span></span><br /> <span style="color: #fa5669; font-size: x-small;"><em><span style="color: #808000;"><strong><span style="font-family: 'trebuchet ms', geneva; font-size: 8pt;">$accounts_country_c </span></strong></span><span style="font-size: 7pt; color: #a52a2a;">($accounts_industry)</span></em></span><br /> <span style="font-family: tahoma, arial, helvetica, sans-serif; font-size: 9pt; color: #800080;">$accounts_phone_office</span>,<span style="font-family: tahoma, arial, helvetica, sans-serif; font-size: 8pt;">$accounts_phone_alternate</span><br /> <span style="color: #000000; font-family: verdana, geneva; font-size: xx-small;">$accounts_department_account_c</span></p>
</td>
<td>
<p style="float: left; padding-bottom: 20px; width: 300px; ; margin-top: 0px; border-bottom: 1px dashed #ccc;"><strong><span style="font-family: verdana, geneva; color: #0000ff; font-size: 9pt; text-transform: uppercase;">$accounts_name</span></strong><br /> <span style="font-family: verdana, geneva; font-size: xx-small; text-transform: uppercase;"><strong>$accounts_new_billing_street_c</strong></span><br /> <span style="text-decoration: underline; color: #ff0000;"><span style="font-family: verdana, geneva; font-size: 14px;"><strong><span style="font-size: 9pt;">$accounts_new_billing_city_c $accounts_new_billing_postalcode_c</span></strong></span></span><br /> <span style="color: #fa5669; font-size: x-small;"><em><span style="color: #808000;"><strong><span style="font-family: 'trebuchet ms', geneva; font-size: 8pt;">$accounts_country_c </span></strong></span><span style="font-size: 7pt; color: #a52a2a;">($accounts_industry)</span></em></span><br /> <span style="font-family: tahoma, arial, helvetica, sans-serif; font-size: 9pt; color: #800080;">$accounts_phone_office</span>,<span style="font-family: tahoma, arial, helvetica, sans-serif; font-size: 8pt;">$accounts_phone_alternate</span><br /> <span style="color: #000000; font-family: verdana, geneva; font-size: xx-small;">$accounts_department_account_c</span></p>
</td>
</tr>
</table>
Hello,
I do not want duplicate labels. I showed the image just to point out the alignment. I want different labels in columns