Discussion Locked

HTML size for textarea

0 helpful
2 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
Is there any way to set the size for a textarea so that it will be rendered the same by IE and Netscape?

2 replies

by stevedave

You can specify a size by Rows= and Cols=, but it still won't look the same in netscape vs ie....

Netscape makes form elements (text and textarea at least) bigger than ie does.

If it is really important to have it appear the same in both browsers, you could have a block of javascript that browser detects, and then outputs the correct textarea:
if (netscape) { textarea with smaller size definitions}
else { textarea with larger size definitions}

Hopefully that made sense, and helps some....

This discussion is closed to new replies.