How are the pages being built (server side)? It may be possible to cut the text down before it gets to the CSS/JS stage.
In Rails you can just call truncate on the text and pass the number of characters: <%= truncate(item.description, :length=>52) %> http://api.rubyonrails.org/classes/ActionView/Helpers/TextHelper.html#M001743 Sunny On Sun, Feb 21, 2010 at 9:20 AM, Roman Land <[email protected]> wrote: > Hi, > > I made this nice fiddle with BP to demonstrate what I mean: > http://www.jsfiddle.net/3fGs3/1/ > > My questions is, what is the best approach with this kind of "content > boxes" that house different types of texts, these are part of my site where > there's a list of these boxes with content. > > The behavior I am looking for is for CSS to handle text that is too long in > a way that pleases the eye :) > For example I would expect overflowing text to be terminated with follwoing > "..." before the line ends.. > > Since this is a CSS related list, I think you are the best authority on the > matter. > > Thanks > Roman > > -- > You received this message because you are subscribed to the Google Groups > "Blueprint CSS" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<blueprintcss%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/blueprintcss?hl=en. > -- You received this message because you are subscribed to the Google Groups "Blueprint CSS" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/blueprintcss?hl=en.
