Just a suggestion, have you tried using CSS instead of using cell properties?
larry On 8/17/05, Matthew Blatchley <[EMAIL PROTECTED]> wrote: > Today, just like the last few weeks, we've STILL been trying to figure > out why right alignment in a table doesn't work properly when using > CFDOCUMENT. When using anything other than numbers and letters, a simple > table will not align the text to the right properly. It goes right over the > table structure because the non-alphanumeric characters are treated > differently than numbers and letters. We've spent 80+ hours over a small > estimated quote to figuring this out and nearly cost us the whole deal. I'm > certain that it didn't make us or CF look good, and there should have been > something somewhere stating that this is a problem....so now there will be. > No one else should have to go through what we went through to get this > desired result. Rediculas. No matter what we tried, the right alignment is > off by a number of pixels which we think is a problem somewhere in the > "iText's" interpretation of the html through CF. Not too sure why it acts > this way, but it does....maybe someone at MM can answer without billing me > over the phone :) > > Example. (This works because there is only alphanumeric chars in the table) > <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0"> > <TR> > <TD ALIGN="RIGHT" width="336"> > test test test test text<br> > test 1234 test 1234<Br> > test5654 test <br> > </TD> > </TR> > </TABLE> > > However this table doesn't work. When you right align paragraphs that > contain non-alphanumeric characters (commas, @, semi-colons, periods etc) you > get wacky behavior on the right alignment. Again, this is only when you > align to the right. The Left alignment seem to be fine. We're still playing > with the center alignment, but the chars are still treated different. > <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0"> > <TR> > <TD ALIGN="RIGHT" width="336"> > [EMAIL PROTECTED]<Br> > johnny went to the market @ 2:pm<Br> > </TD> > </TR> > </TABLE> > > Here is one solution that we found as a work around! Oh, wow...and actual > solution... Each non-alphanumeric character has to be in it's own <td> tag, > and each line has to be in it's own table. In order to get the above table > to work you have to do the following below. Also, any style that's defined > has to be in EVERY <td> tag, not just in the table tag, even the <td> tag > that contain spaces because if you don't, it throws off the vertical height > in the row and ultimately messes up the right alignment. The only reason I > didn't put the styles into the td tag in this example is so everyone could > read it better. > > This works!! > <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0"><tr><td align="right"> > <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0"><TR><TD > ALIGN="RIGHT">matt</td><td>@</td><td>bridgeleaf</td><td>.</td><td>com</td></tr></table> > <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0"><TR><TD > ALIGN="RIGHT">johnny</td><td> </td><td>went</td><td> </td><td>to</td><td> </td><td>the</td><td> </td><td>market</td><td> </td><td>@</td><td>2</td><td>:</td><td>pm</td></tr></table></TD></TR></TABLE> > </td></tr></table> > > I hope this helps everyone else out there trying to make this work. > > Matt Blatchley > Bridgeleaf Studios > www.bridgeleaf.com > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:5:170133 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/5 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:5 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.5 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
