Hello, I know it is very simple but please can anyone tell me how do i add a css style to a text box.. This is the css style <style type="text/css"> .textbox1 { font-family:verdana; font-size: large; font-weight:bold; text-decoration:underline overline; background-color:yellow;} </style> and below is the text_field to which textbox1 class is to be applied. <%=org_form.text_field("org_name",:size=>"124)%> Thank you. -- 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 -~----------~----~----~----~------~----~------~--~---
<%=org_form.text_field("org_name",:size=>"124, :class => ''textbox1 '') %> You can use css to set the width too. John I On Feb 17, 10:04 am, Ank Ag <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> Hello, > I know it is very simple but please can anyone tell me how do i add a > css style to a text box.. > > This is the css style > <style type="text/css"> > .textbox1 { > font-family:verdana; > font-size: large; > font-weight:bold; > text-decoration:underline overline; > background-color:yellow;} > > </style> > > and below is the text_field to which textbox1 class is to be applied. > <%=org_form.text_field("org_name",:size=>"124)%> > Thank you. > -- > Posted viahttp://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 -~----------~----~----~----~------~----~------~--~---
John Ivanoff wrote:> <%=org_form.text_field("org_name",:size=>"124, :class => ''textbox1 '') > %> > > You can use css to set the width too. > > John IThank you.It works -- 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 -~----------~----~----~----~------~----~------~--~---
glad i could help thanks John Ivanoff On Feb 18, 9:03 am, Ank Ag <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> John Ivanoff wrote: > > <%=org_form.text_field("org_name",:size=>"124, :class => ''textbox1 '') > > %> > > > You can use css to set the width too. > > > John I > > Thank you.It works > -- > Posted viahttp://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 -~----------~----~----~----~------~----~------~--~---