I am using Spring 2.5 and form tags to bind data and show errors. My problem is that I want to control the background color of the input fields. I can control the color in Firefox, but not in IE.
If I have a style like this :
HTML Code:.bgWhite { background-color: White; }
with tags in my jsp like this...
Firefox will display the fields with white backgrounds, but IE displays ugly yellow.HTML Code:<spr:form commandName="personalData" method="post" action="personalInfo.html"> First Name : <spr:input path="firstName" cssClass="bgWhite" maxlength="50"/> <spr:errors path="firstName"/> <br/> Middle Initial : <spr:input path="mi" size="1" cssClass="bgWhite" maxlength="1"/> <spr:errors path="mi"/> <br/> Last Name : <spr:input path="lastName" cssClass="bgWhite" maxlength="50"/> <spr:errors path="lastName"/> <br/> Address (Line 1) : <spr:input path="addr1" cssClass="bgWhite" maxlength="90"/> <spr:errors path="addr1"/> <br/> Address (Line 2) : <spr:input path="addr2" cssClass="bgWhite" maxlength="90"/> <spr:errors path="addr2"/> <br/> City : <spr:input path="city" cssClass="bgWhite" maxlength="50"/> <spr:errors path="city"/> <br/> State : <spr:select path="state" items="${selectItems} cssClass="bgWhite""/> <spr:errors path="state"/> <br/> Zip : <spr:input path="zip" cssClass="bgWhite" maxlength="10"/> <spr:errors path="zip"/> <br/> Business Phone (example: 123456789) : <spr:input path="bizPhone" cssClass="bgWhite" maxlength="14"/> <spr:errors path="bizPhone"/> <br/> Mobile Phone (example: 123456789) : <spr:input path="mobile" cssClass="bgWhite" maxlength="14"/> <spr:errors path="mobile"/> <p/> <input type="submit" value="Submit" onclick="return validate();"/> </spr:form>
What must I do to get IE to co-operate with the style set in the spring tags?
-clark


Reply With Quote