[thelist] FW: problems with text field sizing and ie 5.5

Aylard JA (James) jaylard at equilon.com
Wed Dec 6 13:43:50 CST 2000


Eric,

> Any thoughts on how to correct this.  It might be necessary for me to
detect
> browsers and code in a fix for ie. It this is what's requiered, what are
the
> proper tags to smack ie into listening?

	Nav and IE assume different values for the width of a character in
form elements, resulting in different element widths even with the same cols
or width value (depending on the element). Using ASP or Cold Fusion, for
instance, you could insert a different cols value depending on the browser
type. But probably the easiest fix is to apply a width to your textarea
using a style sheet, something like this:

<style type="text/css">
   textarea {
      width: 300px ;
   }
</style>

	This will override the cols value specified in your <textarea>
element in IE 4+ as well as Netscape 6, whereas Netscape 4.x (and most other
browsers) will use the cols value.

hth,
James Aylard




More information about the thelist mailing list