Satchel
Satchel

Reputation: 16734

How do I align label for checkbox in formtastic for rails 3?

I am using the following for a check-box on a form:

= f.input :post_linkedin, :label => "Post to my LinkedIn Network", 
  :hint => "Sharing your expertise on LinkedIn helps you gain credibility, visibility and potential opportunities"

However, the rest of the form has labels aligned to the left of the fields. This puts the checkbox immediately to the right? Is that right?

The "hint" ends up being on the same line rather than as a separate line.

How can I make it appear on a separate line (without getting into css, wanted to see if formtastic could take care of it). But if I do, what would it be?

Upvotes: 0

Views: 1256

Answers (1)

dnch
dnch

Reputation: 9605

There's nothing you can do in Ruby, or with Formtstic - you're going to have to control it using CSS.

Upvotes: 1

Related Questions