Neil Aggarwal wrote:
Hello:
I am sure this has been asked before, but I am just
not finding the answer. I have searched the web
and the archives of this list to no avail.
I want to make some labels of an input form align
to the right instead of the left.
Here is an example:
<s:form action="test/ThemeTest">
<s:textfield label="Improvement value" name="impMinVal" size="8"/>
<s:textfield label="to" name="impMaxVal" size="8"/>
<s:textfield label="Short" name="impMinVal" size="2"/>
<s:textfield label="to" name="impMaxVal" size="8"/>
</s:form>
Here is what the page looks like:
https://tweb.retcgroup.com/thymeleweb/test/ThemeTest.action
I want the label Short: to appear to the right of its table
cell instead of the left.
Two options:
1) simply define a CSS rule to set the text alignment as you want
2) customize the theme to include appropriate inline-CSS or an
align='right' on the <td> for the label.
More info on modifying themes and templates is here:
http://struts.apache.org/2.x/docs/themes-and-templates.html
L.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]