I have an application that has an initial login page that has a user name and password input box. This page works fine in IE 7, Safari , Firefox 4 & 5 but not in IE 8 and 9. In IE 8/9 the user name and password display with different size input boxes when you adjust the zoom percent. While doing some testing I noticed in IE 8/9 the Document Mode is in Quirks Mode. So I tried setting the Document Mode in IE 9 to IE 9 Standards mode and the page displays correctly. However in IE 8 it has no affect. The only thing I have been able to get to work is to redefine the font-family in the style sheet for the input boxes. This works for IE 7,8 and 9 and also Safari and Firefox.
I have also tried setting the DOCTYPE and meta tags but none of those combinations seem to work in IE 8.
I included a test stylesheet and html below that reproduces the problem.
Does anyone know why IE 8/9 would require this ? Is there another way to handle this other than redefining the font-family ?
Thank you.
The stylesheet below works in IE 7, Safari and Firefox 4 & 5. In IE 8/9 it causes the user name and password to display with different lengths unless I use the commented out line:
stylesheet:
body { font-size: x-small; font-family: Arial, Helvetica, Geneva, Swiss, SunSans-Regular;}
form { font-size: 100%; }
input { font-size: 110%; }
/*input { font-size: 110%; font-family: Arial, Helvetica, Geneva, Swiss, SunSans-Regular; }*/
INPUT.TEXT { font-size: 100%; }
select { font-size: 110%; }
textarea { font-size: 110%; }
html:
<html>
<head>
<title>Login</title>
<link rel="stylesheet" type="text/css" href="./mystyle.css">
</head>
<body>
<table>
<tr><td>User Name: </td><td><input type=text name=username size=20 value=""></td></tr>
<tr><td>Password: </td><td><input type=password name=pass size=20></td></tr>
<tr><td> </td><td><input type=submit value=Login></td></tr>
</table>
</body>
</html>