-1

I am using Rails 3.1x, SimpleForm 2.1, and Bootstrap 2.2.x, and I want to change the position of the hint text on some of my forms.

Currently if I use code such as the following (this is a simplified version)

<%= simple_form_for @user, :html => { :class => 'form-horizontal' } do |f| %>

  <%= f.input :name, :hint => 'this should be your first name' %>

  ..
  ..

I will get a form looks like this

enter image description here

However, I would like it to look like this.

enter image description here

Any thoughts?

creimers
  • 4,975
  • 4
  • 33
  • 55
Michael Moulsdale
  • 1,488
  • 13
  • 34

1 Answers1

0

I am not sure its works well but try this , in your form field add class

 <%= f.input :name, :hint => 'this should be your first name' , :class => "someclass"%>

and in application.css

.somecalss
      { 
           width:somevalue;
            }
navinspm
  • 153
  • 1
  • 11