Cols not responding in text_area

Hi:

I’m doing a pretty simple text_area in a form. I need it to have a
minimum width that’s really small - about 10, or 10 cols. I’ve tried it
both ways, and neither will go small enough to what I need. Does
textarea in HTML have an absolute minimum? I have no styles applied to
text_area:

<%= text_area_tag “message”, nil, :cols=> “2”, :rows => “3”%>

renders HTML:

but the actual cols is like 20. Any ideas?

Thanks!

Mike

On Sep 3, 4:45 pm, Mike D. [email protected]
wrote:

but the actual cols is like 20. Any ideas?

Hi, I’ve got he same problem… did you ever find a solution to this?

Cheers,

JS

On Sep 3, 4:45 pm, Mike D. [email protected]
wrote:

renders HTML:

but the actual cols is like 20. Any ideas?

I’ve now used CSS to do the size:

<%= f.text_area :notes, :rows => 3, :cols => 10, :class =>
‘small_textarea’ %>

I’m guessing that the size shouldn’t be regulated in HTML but in CSS
due to accessibility etc.

Hope that’s of any use to anyone who’s scratching their heads too. :slight_smile:

JS
textarea.small_textarea {
height: 6em;
width: 25em;
}