Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

textarea size to big!

Status
Not open for further replies.

mrdance

Programmer
Apr 17, 2001
308
SE
I am testing Netscape and IE on some pages I have made. I am using Netscape 6.01 and IE 6. I have som problems with the textarea which becomes to big (to wide) in Netscape. Here is the code;

<TEXTAREA NAME=message COLS=93 ROWS=5 CLASS=input></TEXTAREA>

The class &quot;input&quot; looks like this;

.input {
font-family:Verdana, Arial, Geneva, Helvetica;
font-size:10px;
font-weight:normal;
color:#494949;
}

How can I make them become the same size?

Thanks / Henrik
 
I don't know, but I'm having the same problem, let me know when you find out. Thanks and good luck!
ryangill@crosslink.net
 
I found a way round it using the css-&quot;style&quot;.

Like this;

<TEXTAREA STYLE=&quot;width:200;&quot;></TEXTAREA>

Hope that helps!

/ regards Henrik
 
You're not alone for sure! I have been struggling with this one for years. I am currently trying to work out the same issue in Netscape 4.75! I have it ablut OK in N6 using the style tag, but 4.75 is a real bugger still.

Good luck!
 
You must have find a workaround since then but here's the reason that makes Netscape not recognizing TEXTAREA's like IE does:

Netscape does not render the input fields the same way as IE does. If you use a proportional font like Arial, Verdana or Georgia, Netscape calculates the text fields to &quot;widest possible letter * (times) the number of possible letters&quot;, and stretches input or textarea fields to this point. If you set the font-family in the Netscape to a monospaced font, like:

{font-family: &quot;Courier New&quot;, Courier, monospace;}

then Netscape calculates a &quot;normal letter space&quot;.

Hope this might help.

- :) Thanks to CSShark( :)
 
my textarea content size is 1000. on entering 1000 characters and making changes to them and on updating, the contents are not updated in netscape. where as this problem does not occur in IE. in the database also the size allocated is 1000
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top