![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Why are cols and rows required attributes for the textarea element? |
|
Seems like that's something that ought to be determined with CSS |
#3
| ||||
| ||||
|
|
Why are cols and rows required attributes for the textarea element? |
|
Seems like that's something that ought to be determined with CSS - not with hard-coded HTML attributes. |
|
Also, there doesn't seem to be much of a correlation between cols / rows and the height / width of a textarea. |
|
In the first textarea, I can place the letter a twelve times horizontally and three times vertically. Wouldn't that make it 3x12 and not 2x10? |
#4
| |||
| |||
|
|
In the first textarea, I can place the letter a twelve times horizontally and three times vertically. Wouldn't that make it 3x12 and not 2x10? I'm not sure what you mean by that, but the cols attribute specifies the width in terms of "average-width" characters, and this vague concept means different things in different situations. Note however that CSS has _no_ such concept. |
#5
| |||
| |||
|
|
Why are cols and rows required attributes for the textarea element? Seems like that's something that ought to be determined with CSS - not with hard-coded HTML attributes. Also, there doesn't seem to be much of a correlation between cols / rows and the height / width of a textarea. For example, http://www.htmlcodetutorial.com/form...AREA_COLS.html In the first textarea, I can place the letter a twelve times horizontally and three times vertically. Wouldn't that make it 3x12 and not 2x10? |
#6
| |||
| |||
|
|
yawnmoth wrote: Why are cols and rows required attributes for the textarea element? Seems like that's something that ought to be determined with CSS - not with hard-coded HTML attributes. Also, there doesn't seem to be much of a correlation between cols / rows and the height / width of a textarea. For example, http://www.htmlcodetutorial.com/form...AREA_COLS.html In the first textarea, I can place the letter a twelve times horizontally and three times vertically. Wouldn't that make it 3x12 and not 2x10? Interestingly, in every size textarea I created it displayed exactly 2 more characters than the COLS spec. |
#7
| |||
| |||
|
|
I believe it makes the box large enough to be able to display the specified number of rows and columns even when the user types sufficient text to cause scrollbars to appear. |
#8
| |||
| |||
|
|
On Thursday 26 March 2009 20:20, Swifty wrote: [cols and rows in textarea] I believe it makes the box large enough to be able to display the specified number of rows and columns even when the user types sufficient text to cause scrollbars to appear. I'd love to have a textarea that changed size with its containing div on browser resize instead of staying stubbornly its [cols] width even if that means it overlaps the sidebar. |
#9
| |||
| |||
|
|
I'd love to have a textarea that changed size with its containing div on browser resize instead of staying stubbornly its [cols] width even if that means it overlaps the sidebar. |
#10
| |||
| |||
|
|
In article <1728444.hKElGaqSPk (AT) valdyas (DOT) org>, Irina Rempt <irina (AT) valdyas (DOT) org> wrote: I'd love to have a textarea that changed size with its containing div on browser resize instead of staying stubbornly its [cols] width even if that means it overlaps the sidebar. If you look at, say, Ed's page: http://edmullen.net/temp/textarea.php and change his line that reads like: textarea ... name="few" cols="5" rows="2">1111111</textarea to textarea ... style="width: 50%;" ....>1111111</textarea |
|
I should mention, I think Chris mentioned it to me a while back, if you are interested as a user, "It's all text", a FF add on that allows a nifty temporary text editor facility to pop up and you can write your life story in there... |
![]() |
| Thread Tools | |
| Display Modes | |
| |