> On Sep 23, 2017, at 11:33 AM, Walter Lee Davis <waltd@wdstudio.com> wrote:
>
>
>> On Sep 23, 2017, at 9:52 AM, Ben Edwards <login@funkytwig.com> wrote:
>>
>> I want to use this to put truncate stuff and put ... If a text string in too long.
>
>
> There is a CSS property for overflow, which will take the letterforms and specific characters into account. See more here: https://developer.mozilla.org/en-US/docs/Web/CSS/overflow
Sorry for the premature Send, I really meant this: https://developer.mozilla.org/en-US/docs/Web/CSS/text-overflow
This does the same thing as overflow but for runs of text, and puts an ellipsis at the end as you describe.
Walter
>
> Walter
>
> --
> You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
> To post to this group, send email to rubyonrails-talk@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/850E964B-2CF8-4C6B-BA01-DB8A4970EC94%40wdstudio.com.
> For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/1269AA4D-CDDD-4894-B8A2-AA1353B40E4A%40wdstudio.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment