Jump to content

How do I display the tail end of a textfield?


roughie

Recommended Posts

My textfield is n pixels long.

Sometimes it holds a string longer than n

for which the tail end of the string

is more important for display than its beginning.

 

E.g., if the field held stock symbols

dabbled with in chronological order,

I'd like the last ones to display by default,

rather than those dealt with more remotely.

 

How, with CSS, do I shift the contents of the relatively

short field to the left, so the right edge of its long

content is visible?

(The way it's viewed were I to place my

cursor into the field and scroll to the right edge.)

 

If text is shorter than textfield's size,

text-align: right; will align what's there rightwards.

 

However, if the field's text holds text longer than

textfield's size, it will not display the tail edge,

as I wish it could.

you should NOT be ourring this kind of information in a textarea its tabular data and should be in a table...

 

you could use some ajax o update the table and add new content to teh top of it so that the latest infor is most prominant.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.