
Signature
Mark Rae
ASP.NET MVP
http://www.markrae.net
Both identical:
Firefox =
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head><title>
Untitled Page
</title></head>
<body>
<form name="form1" method="post" action="Default.aspx" id="form1"
enctype="multipart/form-data">
<div>
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE"
value="/wEPDwUJLTcwNzkzOTQzD2QWAgIDDxYCHgdlbmN0eXBlBRNtdWx0aXBhcnQvZm9ybS1kYXRhZGQTiLHSoItd/ZcHLHDCAbxIdLMhWQ==" />
</div>
<div>
<input type="file" name="FileUpload1" id="FileUpload1"
style="width:600px;" /></div>
</form>
</body>
</html>
IE7=
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head><title>
Untitled Page
</title></head>
<body>
<form name="form1" method="post" action="Default.aspx" id="form1"
enctype="multipart/form-data">
<div>
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE"
value="/wEPDwUJLTcwNzkzOTQzD2QWAgIDDxYCHgdlbmN0eXBlBRNtdWx0aXBhcnQvZm9ybS1kYXRhZGQTiLHSoItd/ZcHLHDCAbxIdLMhWQ==" />
</div>
<div>
<input type="file" name="FileUpload1" id="FileUpload1"
style="width:600px;" /></div>
</form>
</body>
</html>
Mark Rae [MVP] - 04 Sep 2007 20:27 GMT
> Both identical:
Wow! That's really strange - toggle between FireFox rendering and IE
rendering really is totally different.
If you want to see something even weirder, have a look at this in FireFox in
IE mode:
<div>
<input type="file" name="FileUpload1" id="FileUpload1"
style="width:100px;" />
<input type="text" name="txtText" id="txtTest" style="width:600px;" />
</div>
Now switch to FireFox mode...
Seems that Mozilla are adamant that this is the way it's supposed to be, and
that the file control *shouldn't* be resizeable with styles...
Nil desperandum...
http://www.quirksmode.org/dom/inputfile.html
http://www.google.co.uk/search?hl=en&rlz=1T4GGIH_en-GBGB220GB220&q=FireFox+input
+type%3D%22file%22+width&meta=

Signature
Mark Rae
ASP.NET MVP
http://www.markrae.net