I am using html:submit in my
jsp. I am using a CSS to dynamically get an image which overlaps this submit button and give it a descent look.
the code in jsp is:
<html:submit property="method" styleClass="adminLongButton"
titleKey="label.submit">
<bean:message key="method.disputeorvalidate" /></html:submit>
and the css is
.adminLongButton
{
background: url(../img/buttonscss/BtnSubmit.gif); width: 56px;height:18px;background-repeat:no-repeat; font-family: arial; font-weight: bold; font-size:11px; color: #855cad; border-style: none;
}
My problem is that the image does not resize with the text as the html:submit normally does without the styleClass.
So whe my text in the jsp changes with the i18n the text is sometimes larger than the image size say in case of GERMAN locale. CAn somebody help me with this. I want to resize the image lying above the submit button depending upon the text coming in. There should be some property of the CSS that should be able to help me with this.