title: how do I align my error message with Simple_form for Ruby on Rails?
body: <p>at present, my form looks like this with an error message (Name is a required field):</p>
  
  <p><img src="https://i.stack.imgur.com/7K5sM.jpg" alt="enter image description here"></p>
  
  <p>But I want to put the 'can't be blank' error alongside the 'Name', like this:</p>
  
  <p><img src="https://i.stack.imgur.com/OSHHI.jpg" alt="enter image description here"></p>
  
  <p>I've given myself more freedom on the 'Name' label and error by changing from default bootstrap Simple_form classes with this code:</p>
  
  <pre><code>&lt;%= f.input :name, :required =&gt; true, :label_html =&gt; { :class =&gt; 'edit_form_titles' }, :error_html =&gt; { :class =&gt; 'cant_be_blank'} %&gt;
  </code></pre>
  
  <p>And my css for these classes is:</p>
  
  <pre><code>  .edit_form_titles{
    display: block;
    margin-bottom: 0px;
    color: #333333;
    }
  
    .cant_be_blank{
    font-size:12px;
    }
  </code></pre>
  
  <p>Any idea on how I can align the error message next to the name, as I describe? Thanks for any help.</p>