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: <textarea cols="2" id="message_" name="message[]" rows="3"></textarea> but the actual cols is like 20. Any ideas? Thanks! Mike -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On Sep 3, 4:45 pm, Mike Dershowitz <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> 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: > > <textarea cols="2" id="message_" name="message[]" rows="3"></textarea> > > 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 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On Sep 3, 4:45 pm, Mike Dershowitz <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> 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: > > <textarea cols="2" id="message_" name="message[]" rows="3"></textarea> > > 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. :) JS textarea.small_textarea { height: 6em; width: 25em; } -------- --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---