roughie Posted July 9, 2008 Share Posted July 9, 2008 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. Quote Link to comment Share on other sites More sharing options...
haku Posted July 9, 2008 Share Posted July 9, 2008 I could be wrong, but I think you are going to need a scripting solution for this, either javascript or php. I don't think it can be done purely with CSS. Though someone else may be able to come up with something I'm not thinking of. Quote Link to comment Share on other sites More sharing options...
ToonMariner Posted July 9, 2008 Share Posted July 9, 2008 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.