your css presumably defines default fonts for the text in the box. check in as many browsers+os which one generates the least number of chars that fit in the box (and don;t forget to count [click for more] text you'll be adding!). that's the number of chars you need to work with. after that download Abbreviate udf from http://cflib.org/abbreviate and use it to truncate the text.
Azadi On 01/06/2010 05:19, Les Mizzell wrote: > Sean Corfield wrote: >> If you know how many characters will fit in the box (which may be font >> dependent?), then start there and work back to the next space and >> truncate there. That way you'll always have complete words and the >> number of words will vary depending on the total number of characters. > That's the problem. I can make a "best guess" as to the number of > characters, but it's font dependent, so no exact number is ever going to > work. > > The graphic designers I work with need to get out of their "print mode" > when doing layouts!!! ... and they get the darned designs approved by > the client *before* sending to me and going "see any issues here". > > > __________ Information from ESET NOD32 Antivirus, version of virus signature > database 5159 (20100531) __________ > > The message was checked by ESET NOD32 Antivirus. > > http://www.eset.com > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:334157 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

