Raige All American 4386 Posts user info edit post |
How do I align the values that show up in the field to the right instead of the left. I've tried styles, divs etc and can't get it to work. It's not essential but it would make things look much nicer. Also I've never had to move the value before and online docs aren't helpin. 10/20/2005 11:14:38 AM |
spookyjon All American 21682 Posts user info edit post |
Alas, I don't think that's something that is possible to do with HTML and CSS. 10/20/2005 11:24:21 AM |
Excoriator Suspended 10214 Posts user info edit post |
right align it in word, save as html
easy way out 10/20/2005 11:25:53 AM |
agentlion All American 13936 Posts user info edit post |
I think he's asking for a way for the text in a form textfield to show up as right-aligned as a user types in data, right?
probably have to do it in JavaScript. Could do something like set the text field to a fixed width and use a fixed width font like Courier, then as the user types use a JS function to append the appropriate number of spaces to the front of the text field? 10/20/2005 11:32:14 AM |
Raige All American 4386 Posts user info edit post |
Yea Agentlion has the idea.
just a basic form field with a preset number in it... that can be changed. But i wanted it to align to the right instead of the left since it's cash. It just aesthetically looks bad. 10/20/2005 11:36:06 AM |
Lowjack All American 10491 Posts user info edit post |
<input type="text" style="text-align:right">
10/20/2005 11:57:13 AM |
Raige All American 4386 Posts user info edit post |
haha *puts head in hands*. I was using style="align:right". Thanks. 10/20/2005 12:00:58 PM |
agentlion All American 13936 Posts user info edit post |
[Edited on October 20, 2005 at 12:02 PM. Reason : ok.... nevermind. ]
10/20/2005 12:01:44 PM |