J
jawolter
I have a list of links that are sometimes too long to display on a
given screen. I want to trim the ends of them if they are too long, and
show dot dot dot. If the browser is widened, though, and there is more
room, i want to see all the link.
I want to have 1 line of text that is say 40% of the screen. When
someone enlargens the browser window, it shows more of the text.
If the text is longer than the 40% I want to trim it and display dot
dot dot.
So an example
when the page is narrow:
| |
|Tracing the effe...|
| |
widen the browser:
|
|
|Tracing the effects of migratory fowl on gmail usage |
|
|
I'm having a really hard time thinking of good search keywords. I
haven't found anything yet. I've tried searching for:
concetanate javascript text dynamically
visible text area resize javascript
span text resizes with browser
given screen. I want to trim the ends of them if they are too long, and
show dot dot dot. If the browser is widened, though, and there is more
room, i want to see all the link.
I want to have 1 line of text that is say 40% of the screen. When
someone enlargens the browser window, it shows more of the text.
If the text is longer than the 40% I want to trim it and display dot
dot dot.
So an example
when the page is narrow:
| |
|Tracing the effe...|
| |
widen the browser:
|
|
|Tracing the effects of migratory fowl on gmail usage |
|
|
I'm having a really hard time thinking of good search keywords. I
haven't found anything yet. I've tried searching for:
concetanate javascript text dynamically
visible text area resize javascript
span text resizes with browser