• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

changing Alignment of 'Text' component

 
stago pat
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi -
I have a Text( InputBox) with Absolute position on the HTML page , now according to user selection I want to reposition this text with the use of Java Script.
Is this possible !! Ir yes.. then please show me the way...
In HTML code below - I want to change Top and left alignment, according to user selection with the use of Java Script.
So that the rendering page, will reposition the 'text'.
Thanks
Please find below - HTML code for this 'Text'

<input type="text" name="C2A2" title="C2A2" size="1"
style="position:absolute; top:375px; left:170px; {background-color: #ccffcc}"
onchange="checkType(this, 'double')"/>
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You are wanting to change the text alignment in the text box?/
If so then it is CSS
style="text-align:right"
with JavaScript it probably is
document.FormName.ElementName.style.textalign = "right";
Eric
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic