Hi All, I�m having some strange problems with textarea tags. I find it almost impossible to enforce a consistent look across browsers for textarea even though I specifically impose a style. <textarea class="simpleText" name=exhibit_text wrap="physical" cols="60" rows="12" value="<%= exhibit %>"
cols="60" works fine for IE but NS 6 showed the columns huge so I specifically made the columns 30 when dealing with NS6. Now I�m testing with NS 7 and all the columns are pitifully small. Is there a way to enforce column width without coding for every browser and every version?
I�ve been looking everywhere for information how to deal with these, all I find is the basic elementary stuff. Your help is greatly appreciated [ June 12, 2003: Message edited by: Sam Walker ] [ June 12, 2003: Message edited by: Sam Walker ]
Sam, Actually text area doesnt have a attribute "value" so remove that and check.u have to write <%= exhibit %> after text area tag. I cheked in ns 6 and didnt find any probs i eman ie and ns 6 and 7 behaved the same way Then regarding the spaces in ur js include a fn cut the trailing space also i mean fn for both trailing and leading. I had a js like that somewhere in my pc. if u having probs i will check
Joined: Nov 06, 2002
Hi Sunitha, Thanks for the suggestions. I do need to clean up my scripts including what you suggested. My experience has been that even when there�s nothing to initialize the value attribute the column sizes are different on different browsers. I�m going to check out to see what happens after value is removed.
The wrap attribute is not part of the HTML 4 standard and so browsers apply their own meanings to it, if they support it at all. To enforce a standard width, you might want to try applying a CSS width attribute that specifies the width in pixels rather than "columns" (whose width, as you have discovered, is up to browser interpretation). hth, bear