So my questions is similar to this:
http://stackoverflow.com/questions/3695435/crop-text-too-long-inside-div
What I don't want to do is have a hard end to the text (chopping off whatever text overflows).
The desired output would not include an ellipses (...) but would "fade" away. So if I had something like:
<div class="text">This is the really long area of text that I want to chop</div>
then at wherever I decide, say midway in wa|nt... the n would be half faded, and the t would be almost completely faded. Of course the positioning is random and could fall acroos 3 or 4 letters...
Here are acceptable solutions in order of preference.
- Is it possible to fadeout the text with css alone?
- If it's not possible, utilizing another element in div.text, can I accomplish what I want (can opacities fade?).
- Do it with jQuery? (ugh... not preferred)