when you have align="left" on a table, it acts similar to float="left" - content after the table, if it fits in the space, will be displayed in-line to the right of the table. change it to align="center" and your tables will align nicely. you could try adding <br style="clear:left"> after the first table, but i am not at all sure all email readers will render it properly...
Azadi On 31/05/2010 10:46, Matthew P. Smith wrote: > It is showing up like this: > http://yfrog.com/3uorderbcj > > The totals are not breaking down to the next line. > > I changed <br> to <br />, looked for unclosed tags, I don't see it. > > <cfsavecontent variable="variables.body"> > <cfoutput> > > Thank you for your order from mydomain.com!<br /> > <br /> > Order ID: #arguments.order_info_struct.order_key#<br /> > <br /> > Bill to:<br /> > > #decrypt(arguments.order_info_struct.billing_info.billingCardHoldersName, > request.encryption.secretkey, request.encryption.algorithm, > request.encryption.encoding)#<br /> > #decrypt(arguments.order_info_struct.billing_info.billingAddress1, > request.encryption.secretkey, request.encryption.algorithm, > request.encryption.encoding)#<br /> > <cfif > len(trim(arguments.order_info_struct.billing_info.billingAddress2)) and > len(trim(decrypt(arguments.order_info_struct.billing_info.billingAddress2, > request.encryption.secretkey, request.encryption.algorithm, > request.encryption.encoding)))> > > #decrypt(arguments.order_info_struct.billing_info.billingAddress2, > request.encryption.secretkey, request.encryption.algorithm, > request.encryption.encoding)#<br /> > </cfif> > #decrypt(arguments.order_info_struct.billing_info.billingCity, > request.encryption.secretkey, request.encryption.algorithm, > request.encryption.encoding)#, > #decrypt(arguments.order_info_struct.billing_info.billingStateOrProvince, > request.encryption.secretkey, request.encryption.algorithm, > request.encryption.encoding)# > #decrypt(arguments.order_info_struct.billing_info.billingPostalCode, > request.encryption.secretkey, request.encryption.algorithm, > request.encryption.encoding)#<br /> > #decrypt(arguments.order_info_struct.billing_info.billingCountry, > request.encryption.secretkey, request.encryption.algorithm, > request.encryption.encoding)#<br /> > <br /> > <br /> > Ship To:<br /> > #arguments.order_info_struct.shipping_info.first_name# > #arguments.order_info_struct.shipping_info.last_name#<br /> > #arguments.order_info_struct.shipping_info.address_line_1#<br /> > <cfif > len(trim(arguments.order_info_struct.shipping_info.address_line_2))> > #arguments.order_info_struct.shipping_info.address_line_2#<br /> > </cfif> > #arguments.order_info_struct.shipping_info.city#, > #arguments.order_info_struct.shipping_info.state_or_province# > #arguments.order_info_struct.shipping_info.zip#<br /> > <br /> > <br /> > <table align="left" border="0" cellpadding="2" cellspacing="2"> > <tr> > <td colspan="4">Items In Order</td> > </tr> > <tr> > <td align="left">Quantity:</td> > <td width="10"></td> > <td align="left">Item Name:</td> > <td width="10"></td> > <td align="left">Unit Price</td> > <td width="10"></td> > <td align="left">Item Subtotal:</td> > </tr> > <cfloop query="arguments.order_info_struct.cart_info"> > <tr> > <td > align="right">#arguments.order_info_struct.cart_info.cartquantity#</td> > > <td width="10"></td> > <td align="right"># > arguments.order_info_struct.cart_info.name#</td> > <td width="10"></td> > <td > align="right">#dollarformat(arguments.order_info_struct.cart_info.unitprice)#</td> > <td width="10"></td> > <td > align="right">#dollarformat(arguments.order_info_struct.cart_info.subtotal)#</td> > </tr> > </cfloop> > </table><br /> > <br /> > <br /> > <table align="left" border="0" cellpadding="2" cellspacing="2"> > <tr> > <td align="left"> > Subtotal for Item(s): > </td> > <td align="right"> > > #dollarFormat(arguments.order_info_struct.totals.item_subtotal)# > </td> > </tr> > <tr> > <td align="left"> > Shipping Charge: > </td> > <td align="right"> > > #dollarFormat(arguments.order_info_struct.totals.shipping_total)# > </td> > </tr> > <tr> > <td align="left"> > Total Before Tax: > </td> > <td align="right"> > > #dollarFormat(arguments.order_info_struct.totals.total_before_tax)# > </td> > </tr> > <tr> > <td align="left"> > Tax: > </td> > <td align="right"> > #dollarFormat(arguments.order_info_struct.totals.tax)# > </td> > </tr> > <tr> > <td align="left"> > ORDER TOTAL: > </td> > <td align="right"> > > #dollarFormat(arguments.order_info_struct.totals.total_total)# > </td> > </tr> > </table><br /> > <br /> > <br /> > </cfoutput> > </cfsavecontent> > > <cfmail > type="html" > server="mail.mydomain.com" > from="[email protected]" > to="#arguments.order_info_struct.user.emailaddress#" > subject="Your mydomain.com Order Receipt"> > #variables.body# > </cfmail> > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:334135 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

